ASP.Net WebForms problem

B

Big E

I'm using ASP.Net and 2 webforms.
The first web form is open and users click a hyperlink on the datagrid and
that pops up a 2nd form with more details. If the user likes the record he
will click a button that will send that info into textboxes on the first
page.
Problem: I can't use server side code because I will lose the info on the
first page. What I need to do is use some client side code that will simply
put data from the onclick like: PAGE2.Textbox into PAGE1.Textbox.
Would I use Javascript or VBScript or simple HTML. Does anybody have sample
code for this?

Thank you,
Big E
 
E

Eliyahu Goldin

PAGE1 should open PAGE2 with a showModalDialog call. PAGE2 should put the
result info into window.returnValue. PAGE1 will get the info as the result
value of the showModalDialog call and will put it into the textbox.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top