Connecting Tech Pros Worldwide Help | Site Map

Better way to pass around?

Chris
Guest
 
Posts: n/a
#1: Nov 18 '05
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("</HEAD><frameset cols=""50%""><frame
name=""MainFrame"" src=""renewals.aspx?" & Data & """[color=blue]
></frameset></HTML>")[/color]
End Sub


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

Thanks
Chris


Chris Jackson
Guest
 
Posts: n/a
#2: Nov 18 '05

re: Better way to pass around?


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?

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:eS9nRXE7DHA.712@tk2msftngp13.phx.gbl...[color=blue]
>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("</HEAD><frameset cols=""50%""><frame
> name=""MainFrame"" src=""renewals.aspx?" & Data & """[color=green]
>></frameset></HTML>")[/color]
> End Sub
>
>
> I couldn't find any other way to pass the data around. Any ideas?
>
> Thanks
> Chris
>
>[/color]


Chris
Guest
 
Posts: n/a
#3: Nov 18 '05

re: Better way to pass around?


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


"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:OrNP%23%23N7DHA.2300@TK2MSFTNGP10.phx.gbl...[color=blue]
> 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?
>
> --
> Chris Jackson
> Software Engineer
> Microsoft MVP - Windows Client
> Windows XP Associate Expert
> --
> More people read the newsgroups than read my email.
> Reply to the newsgroup for a faster response.
> (Control-G using Outlook Express)
> --
>
> "Chris" <cf@NoSpamzieQuotepro.com> wrote in message
> news:eS9nRXE7DHA.712@tk2msftngp13.phx.gbl...[color=green]
> >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[/color][/color]
new[color=blue][color=green]
> > 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("</HEAD><frameset cols=""50%""><frame
> > name=""MainFrame"" src=""renewals.aspx?" & Data & """[color=darkred]
> >></frameset></HTML>")[/color]
> > End Sub
> >
> >
> > I couldn't find any other way to pass the data around. Any ideas?
> >
> > Thanks
> > Chris
> >
> >[/color]
>
>[/color]


Chris Jackson
Guest
 
Posts: n/a
#4: Nov 18 '05

re: Better way to pass around?


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.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Chris" <cf@NoSpamzieQuotepro.com> wrote in message
news:eaDzkeZ7DHA.1052@TK2MSFTNGP12.phx.gbl...[color=blue]
> Actually I'm using the showModalDialog method that I am using. This is
> what
> is complicating my problem.
>
>
> "Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
> news:OrNP%23%23N7DHA.2300@TK2MSFTNGP10.phx.gbl...[color=green]
>> 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?
>>
>> --
>> Chris Jackson
>> Software Engineer
>> Microsoft MVP - Windows Client
>> Windows XP Associate Expert
>> --
>> More people read the newsgroups than read my email.
>> Reply to the newsgroup for a faster response.
>> (Control-G using Outlook Express)
>> --
>>
>> "Chris" <cf@NoSpamzieQuotepro.com> wrote in message
>> news:eS9nRXE7DHA.712@tk2msftngp13.phx.gbl...[color=darkred]
>> >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[/color][/color]
> new[color=green][color=darkred]
>> > 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("</HEAD><frameset cols=""50%""><frame
>> > name=""MainFrame"" src=""renewals.aspx?" & Data & """
>> >></frameset></HTML>")
>> > End Sub
>> >
>> >
>> > I couldn't find any other way to pass the data around. Any ideas?
>> >
>> > Thanks
>> > Chris
>> >
>> >[/color]
>>
>>[/color]
>
>[/color]


Closed Thread