Passing strings between webforms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!

How do I pass strings between webforms using Request["..."] in the target
webform but without using

Response.Redirect("SearchPOs.aspx?vendorName=" + vendorName);

in the source webform. This is bec. the source webform is a popup window and
I am not able to pass the strings. I also dont want the popup (source)
webform to become another target webform. Any suggestions?

thanks,
newbie
 
There are a couple ways to do that. In your main page, when you call the
ShowModalDialog or ShowModelessDialog method, assign the string to the
returnValue property, test that value in the parent page, and then you can
include it in the querystring or, if you don't want it in the querystring,
then assign the value to a hidden element in your webform.

DalePres
MCAD, MCDBA, MCSE
 
Back
Top