Html control to asp.net controls

Posted by Nandakishore under ASP.NET on 11/27/2012 | Points: 10 | Views : 791 | Status : [Member] | Replies : 3
How to convert Html controls to asp.net controls and Events ,i have html page and i want to do coding in dotnet for the page,i converted html code in aspx page but how to convert controls to dotnet controls




Responses

Posted by: Sandhyab on: 11/27/2012 [Member] Starter | Points: 25

Up
0
Down
Place runat="server" in your html controls.Although if you add the runat="server" attribute to the HTML controls, they are still HTML controls. HTML controls have no server side event. The only different is you can accress to the value of these HTML controls from the code behind.

Thanks & Regards

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

Posted by: Nandakishore on: 11/27/2012 [Member] Starter | Points: 25

Up
0
Down
k thanq


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

Posted by: Sandhyab on: 11/27/2012 [Member] Starter | Points: 25

Up
0
Down
Please mark as answer if this helped you

Thanks & Regards

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

Login to post response