Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

validation

  Asked By: Charlie    Date: Feb 24    Category: Asp.net    Views: 615
  

I have 2 questions about validation in ASP .NET

#1:
I have a custom validator that do not have any javascript code(validation
function), but i want to display the error in the javascript alert. in the
onLoad event of the Page. how can I do that?

#2:
I have a web form that has some validation controls. When I change this webform
everything is saved into a session variable.
so... when i go back to this form, my drop-downs state is restored ( with the
data in session) but the client validation ignore the state and can´t move.
ex:

when go back to the first webform:

this.AGENCIA_RETIRADA.Items.FindByValue(this.ObjReserva.AgRetirada.LocCode).Sele\
cted = true;

this works fine. But the validator said that the drop down named
"AGENCIA_RETIRADA" do not have a selected item.

can anyone help-me with this??

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on validation Or get search suggestion and latest updates.




Tagged: