Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am doing a project in asp.net (Code behind window & c#) and i need to pass two values from jquery ajax (HTML Window) to Code behind window (C#). How to do it.

Please help me...


Thanks,

Dileep...
Posted
Updated 11-Aug-12 3:39am
v2
Comments
Volynsky Alex 11-Aug-12 8:55am    
Please look following posts:
http://stackoverflow.com/questions/11281810/how-to-pass-parameter-from-ajax-to-c-sharp-using-header-request
http://stackoverflow.com/questions/7742354/passing-array-from-jquery-ajax-method-to-c-sharp-codebehind

1 solution

Hi,

You can store your value in hidden field using jQuery and then you can access that hidden field value from code behind.

Let me know if you want code for doing this. but better you try yourself.

Thanks
-Amit Gajjar.
 
Share this answer
 
Comments
dilzz 11-Aug-12 8:59am    
Hi thanks for your reply..... actually i am new in javascript and ajax.. can u please give me the code.

Thanks

Dileep
AmitGajjar 11-Aug-12 11:25am    
check this : http://www.codeproject.com/Tips/111472/Use-HiddenField-Control-to-store-values-from-javas

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