473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Better way to pass around?

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 & """
</frameset></HTML>")

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

Thanks
Chris
Nov 18 '05 #1
3 1600
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:eS*************@tk2msftngp13.phx.gbl...
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 & """
</frameset></HTML>")

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

Thanks
Chris

Nov 18 '05 #2
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:Or******************@TK2MSFTNGP10.phx.gbl...
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:eS*************@tk2msftngp13.phx.gbl...
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 & """
</frameset></HTML>")

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

Thanks
Chris


Nov 18 '05 #3
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:ea**************@TK2MSFTNGP12.phx.gbl...
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:Or******************@TK2MSFTNGP10.phx.gbl...
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:eS*************@tk2msftngp13.phx.gbl...
>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 & """
>></frameset></HTML>")
> End Sub
>
>
> I couldn't find any other way to pass the data around. Any ideas?
>
> Thanks
> Chris
>
>



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
20
by: Steve | last post by:
I have a web app that needs to parse through a file that is located on the client machine. I get the file string from a query string & then parse it. It is working fine on my development box but...
3
by: mrhicks | last post by:
Hello all, I have a question regarding efficeny and how to find the best approach when trying to find flag with in a structure of bit fields. I have several structures which look similar to ...
3
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
14
by: Derek Basch | last post by:
This one has always bugged me. Is it better to just slap a "self" in front of any variable that will be used by more than one class method or should I pass around variable between the methods? ...
1
by: Greg Strong | last post by:
Hello All, Why would brackets be added to the SQL of a pass through query to Oracle? If I paste the debug print of the SQL statement into SQLPlus of Oracle's XE edition it works, and does NOT...
9
by: sam_cit | last post by:
Hi Everyone, I have the following structure and i have a function that will work(modify/edit) the members of the structure, please tell me which is a better apprach considering both time and...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.