Better way to pass around?

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
 
C

Chris Jackson

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?
 
C

Chris

Actually I'm using the showModalDialog method that I am using. This is what
is complicating my problem.
 
C

Chris Jackson

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.
 

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

Members online

Forum statistics

Threads
473,770
Messages
2,569,585
Members
45,080
Latest member
mikkipirss

Latest Threads

Top