I have a code which I have to use HTML
elements instead of ASP.NET
elements. So because I want to have access to the elements from CodeBehind I've set all of their attributes to runat=server
.
As you know ASP.NET
changes the name
attribute of elements to something like CT100$MainContent$IDNameOfThatElement
. How can I prevent ASP.NET
to change it? Cuz I have to have some other names because of JQuery stuff...
For example ASP.NET
changes the name
attribute from required
to CT100$MainContent$PaymentCode
in the following code:
<div class="field">
<input type="text" runat="server" name="required" id="PaymentCode" />
</div>
Thanx in advance.