P
peshrad
Hi !
I'm using Visual Studio .NET to program a Web application coding in C#.
In my form I use an HtmlSelect control that calls a JavaScript function when
the selected item changes.
This JavaScript function calls the submit() method of the form.
For this HtmlSelect control I have also programmed the ServerChange event,
which is able to dynamically set up the form.
Depending on the item selected, this set-up adds an input field and an
associated RequiredFieldValidator.
I want the input field to be empty initially, but, unfortuantely,
the RequiredFieldValidator seems to act immediately when the fresh page
comes from the server.
I didn't have this problem as long as I was using a
System.Web.UI.WebControls.DropDownList instead of the HtmlSelect control,
but I would like to keep the Html control, in order to call my own
JavaScript when the selected item changes.
Is there a way to suppress the above mentioned initial validation when the
page is loaded afresh.
Your kind advice would be appreciated.
Peter
I'm using Visual Studio .NET to program a Web application coding in C#.
In my form I use an HtmlSelect control that calls a JavaScript function when
the selected item changes.
This JavaScript function calls the submit() method of the form.
For this HtmlSelect control I have also programmed the ServerChange event,
which is able to dynamically set up the form.
Depending on the item selected, this set-up adds an input field and an
associated RequiredFieldValidator.
I want the input field to be empty initially, but, unfortuantely,
the RequiredFieldValidator seems to act immediately when the fresh page
comes from the server.
I didn't have this problem as long as I was using a
System.Web.UI.WebControls.DropDownList instead of the HtmlSelect control,
but I would like to keep the Html control, in order to call my own
JavaScript when the selected item changes.
Is there a way to suppress the above mentioned initial validation when the
page is loaded afresh.
Your kind advice would be appreciated.
Peter