bind data from another page

  • Thread starter Thread starter Hyrum Mortensen
  • Start date Start date
H

Hyrum Mortensen

Hi,

I want to have an asp:hyperlink (with target set to _blank) that
points to a multi-field form a user would fill out. After submitting
the form, I want to dynamically change the text of the asp:hyperlink
based on the content of the filed form. How do I do this? Code
examples would help greatly.

Thanks
 
After you have collected your data, you would need to use a JavaScript
handler to force your main page (which you can get to using the
window.parent property) to post back. Of course, if you did this right away,
your child page would not have had an opportunity to post back yet, so there
is no new data on the server. An easy solution might be to have the child
page post back, and direct you to a new page containing a script to force
the parent to update and then close itself.
 
this is quick but can't you pass the control name to the pop up window and
then pass something back to the javascript.window.opener and set the value
of the control you passed?

I believe a good example of this can be found by doing a search on google
about .net pop up calendar control.

Marty U.
 
this is quick but can't you pass the control name to the pop up window and
then pass something back to the javascript.window.opener and set the value
of the control you passed?

Absolutely. It all depends on what information you are collecting. If you
collect a date, and want to display all entries for that date from a
database, then you need a server round trip. If you just want to display
that date, you can just feed it back and modify it on the client.
 
Back
Top