Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a hidden field
ASP.NET
<asp:HiddenField runat="server" ID="hdnRow" />

in my aspx page. adding values into this hidden field in
a button click at client side using javascript. i want to get the values
of hidden field in server side without postback. how to get the hidden field value?

is it possible using ajax?

thanks..
Posted
Updated 24-Jan-13 1:29am
v3
Comments
Azziet 24-Jan-13 6:41am    
question is not clear...please give more details

Yes It's possible with Ajax Async Postback.
You can simply place the Button inside Ajax Update panel & postback it Asynchronously without posting back the whole page.

Secondly you can use jQuery to call Server side method Asynchronously & just pass the Hidden filed value while calling the Server side method & catch this value in your Server side method.

So if you know how to implement these 2 techniques then I'm sure you can get your Solution.
 
Share this answer
 
v2
Put the hidden field in in Update Panel to get the value at server side.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900