Click here to Skip to main content
15,918,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I want to send some data from javascript document window to codebehind so that I can manipulate that later.

Senerio:[I'm using ASP.Net 3.5 framework and C# in codebehind]

Actually I have a form containing some textbox asp server control and there is an image button next to each textbox asp server control. So, whenever user click on the image button, it will popup a javascript window containing some client input type textbox,input type dropdown box and input type button, just to clearify that I will write javascript code against the image button. The user will fill out the client input controls and click the input type savebutton. I want to write some javascript code to grab those input type fields value from javascript window and send it to codehind or server.

My first idea is to implement webservice but how I'm gonna call websevice from document window which will be created dynamically.

Plz help me out, cause I'm stuck in it. It will be great if some give me some reference link or any idea so that I can do reseach futher.

Regards
Kausar Ahmed
kausar1982@yahoo.com
Posted

1 solution

You can use ASP.NET AJAX to call the WebService, check this link:
http://www.asp.net/AJAX/Documentation/Live/tutorials/ASPNETAJAXWebServicesTutorials.aspx
 
Share this answer
 

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