how do I access a html element from code
-
I have created in my aspx file an input text html element which doesn't include the runat=server property. how do I access this control and its methods by the C# codebehind?
Shimi
-
I have created in my aspx file an input text html element which doesn't include the runat=server property. how do I access this control and its methods by the C# codebehind?
Shimi
Hi Shimi! Basically,a input text without the attribute runat="server" can not be manipulated at the code behind part but you can only manipulate in the client side code... While on the other hand ASP.NET button with the attribute runat="server" can be manipulated in both client and code behind part. So if you want to use that HTML control at C# codebehind then you must have to put runat="server" tag. I hope this will help you. :) Regards.
"Save water,It's precious" :)
modified on Thursday, February 07, 2008 12:39:39 AM