I need to now how to get a value of a input type="hidden" in a ashx page.
Anyone can help me???
I need to now how to get a value of a input type="hidden" in a ashx page.
Anyone can help me???
Add runat="server"
in the input
and assign an id
. You can then use the id
in your code behind.
There is another method. Using the asp:HiddenField
. A video can be found here.
Why are you using "ashx" instead of "aspx"? As far as I know, ASHX is for Http Handlers, not web pages.
I solved my problem using a asp:HiddenField. in my ashx page in catch the value of the hiddenfielf like this: form["ctl00$MainContent$myid"]