G
Guest
Hello,
I am trying to create a form dynamically. A very simple form with a textbox,
requiredvalidator and button.
Everything works fine on IE, but no server side validation occurs which
means the requiredfieldvalidator is ignored when using Netscape.
The code logic is:
'Declare a an html form i.e
Dim objForm As New HtmlForm
objForm.Attributes.Add("RunAt", "Server")
Create a table, tablerow and tablecell
Add a textbox and requirefieldvalidator to a cell
Add the cell to the row
Add the row to the table
Add a button to the table
Add the table to the form
Add the form to a placeholder control on the web page
Is there something I am missing? I tried adding the requiredfieldvalidator
control to the validators collection of the page, ie
Me.Validators.Add(validatorcontrol)
as described in http://forums.asp.net/577243/ShowPost.aspx but that makes no
difference.
I have switched off clientside validation and get the same result in IE.
Is there something simple I am missing or do I really need to take a serious
look at creating user controls in asp.net?
Best Regards,
Steve Bugden
I am trying to create a form dynamically. A very simple form with a textbox,
requiredvalidator and button.
Everything works fine on IE, but no server side validation occurs which
means the requiredfieldvalidator is ignored when using Netscape.
The code logic is:
'Declare a an html form i.e
Dim objForm As New HtmlForm
objForm.Attributes.Add("RunAt", "Server")
Create a table, tablerow and tablecell
Add a textbox and requirefieldvalidator to a cell
Add the cell to the row
Add the row to the table
Add a button to the table
Add the table to the form
Add the form to a placeholder control on the web page
Is there something I am missing? I tried adding the requiredfieldvalidator
control to the validators collection of the page, ie
Me.Validators.Add(validatorcontrol)
as described in http://forums.asp.net/577243/ShowPost.aspx but that makes no
difference.
I have switched off clientside validation and get the same result in IE.
Is there something simple I am missing or do I really need to take a serious
look at creating user controls in asp.net?
Best Regards,
Steve Bugden