In my form I need to insert different inputs of type "text". The inputs must be html controls with name and id's. Because I send this form to a external url.
For the validation I do runat=server in all inputs and then I can use requiredfieldvalidator.
But the problem is when I look in the source after visiting the page the name and id's are all changed.
for example
<input id="first_name" class="formright" type="text" name="first_name" runat="server" />
changes to
<input name="ctl00$cphContent$first_name" type="text" id="ctl00_cphContent_first_name" class="formright">
I have to use html controls because the external postbackurl looks at the name and id values to find the control. So I can't use asp controls. It is because of that I used html controls with runat=server
I appreciate any help
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…