.NET3.5 - how to access an HTML control in the .aspx.cs file

Posted by Webmaster under ASP.NET on 9/6/2008 | Views : 4571 | Status : [Administrator] | Replies : 1
I put in some HTML input text controls in the design(.aspx) of the page.
when i try to access the HTML controls in the .aspx.cs of the page, the intellisense
does not bring them up in VS 2008

____________________________
Posted on behalf of Sansircar

Best regards,
Webmaster
http://www.dotnetfunda.com



Responses

Posted by: Webmaster on: 9/6/2008 [Administrator] HonoraryPlatinum

Up
0
Down
Unless you keep runat="server" attribute with them it intellisense will not sense that control. To get value of html controls, you can use Request.Form("contName")


Thanks
______________________
Posted on behalf of Raja

Best regards,
Webmaster
http://www.dotnetfunda.com

Webmaster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response