Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Control name attribute changing automatically

0 views
Skip to first unread message

BeanoKing

unread,
Sep 27, 2008, 12:13:35 PM9/27/08
to
I have this on my aspx form:

<input type="hidden" name="order-input" id="orderinput" value=""
runat="server" />

When the page renders my source now reads:


<input type="hidden" name="orderinput" id="orderinput" value="" />


Why is the name attribute changing? It's causing issues with Amazon
Checkout.


Thanks!

Stan

unread,
Sep 28, 2008, 12:28:15 PM9/28/08
to

Hi

Unless you are doing anything programmatically with the control, try
removing the runat="server" element.

It's probably because the id="orderinput" is being used to generate
the ClientID and using that for the name attribute. If you take out
the runat="server" it will be rendered without modification.

Stan

0 new messages