Better way to pass around?

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I have a modal (yes it must be modal) web page. I do this by having an
empty frame that points to my main page (so that I can repost without new
popups) I have to pass data to the child page from the parent and the only
way I can figure to do it by the url. Please correct me if I'm wrong on
that. When the data get to my frame I then have to pass the data to my
child form, again through the url (i think). The only way I found to do
this is in my frame to have this code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim Data As String = Request.QueryString.Item("Data")
Response.Write("<HTML><HEAD><TITLE>Renewals</TITLE>")
Response.Write( said:
</frameset></HTML>")
End Sub


I couldn't find any other way to pass the data around. Any ideas?

Thanks
Chris
 
I am a little confused by what you are doing.

If you are opening a new window using window.open, that method returns a
reference to that new window, which you can use to get to that page.

If your problem is with getting to a frame, then you can use the frames
collection of the parent window object to find the frame that you need.

Does that answer your question?
 
Actually I'm using the showModalDialog method that I am using. This is what
is complicating my problem.
 
Aha. That is a special sort of beast. You can pass data in the vArguments
parameter, but that would occur on the client. If you intend to access this
on the server, your options are to either post back the calling page and
save information into the Session state, or else pass the data in the URL as
you have already discovered. Alternately, you can author your page to first
grab the vArguments parameter, and then post back to grab the page that you
actually want to display based on this parameter. It's just a matter of how
sensitive your data is, and what gives the best user experience.
 
Back
Top