J
Jeff
hi
asp.net 3.5
I'm trying to integrate a paypal button to my webpage. On my webpage I have
a list of hidden fields which have parameters which will be sent back to
PayPal when user clicks on the image:
<input type="hidden" name="t3" value="M">
<input type="hidden" name="sra" value="1">
PROBLEM
One of the hidden fields I need to set during runtime, This hidden field
should contain username. PayPal require this hidden field to be named
"custom", but during runtime I notice that my hidden field has a different
name despite I named it "custom":
The name I see in the html source is
"ctl00$ContentPlaceHolder1$cuwNewUser$__CustomNav1$custom"
In the markup I created this hidden field this way:
<input type="hidden" name="custom" runat="server" id="custom" />
In the code I reference the hidden field this way:
HtmlInputHidden hidden =
(HtmlInputHidden)TempStep.CustomNavigationTemplateContainer.FindControl("custom");
(it happens inside a create user wizard)
What am I doing wrong here?
asp.net 3.5
I'm trying to integrate a paypal button to my webpage. On my webpage I have
a list of hidden fields which have parameters which will be sent back to
PayPal when user clicks on the image:
<input type="hidden" name="t3" value="M">
<input type="hidden" name="sra" value="1">
PROBLEM
One of the hidden fields I need to set during runtime, This hidden field
should contain username. PayPal require this hidden field to be named
"custom", but during runtime I notice that my hidden field has a different
name despite I named it "custom":
The name I see in the html source is
"ctl00$ContentPlaceHolder1$cuwNewUser$__CustomNav1$custom"
In the markup I created this hidden field this way:
<input type="hidden" name="custom" runat="server" id="custom" />
In the code I reference the hidden field this way:
HtmlInputHidden hidden =
(HtmlInputHidden)TempStep.CustomNavigationTemplateContainer.FindControl("custom");
(it happens inside a create user wizard)
What am I doing wrong here?