I have a page that contains asp.net and html objects.
How do I access design html objects in .cs with C#
?
I have a page that contains asp.net and html objects.
How do I access design html objects in .cs with C#
?
To access an HTML object through C # code, you must add the id
and runat="server"
attributes in the HTML element you want to access.
Once this is done, the HTML element is available to be accessed via C # using the ID.