.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 13th, 2000, 11:38 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Passing Variables 2

<i><b>Originally posted by : Arbil (ricky@rickysantos.com)</b></i><br />I have this form wherein I have to use all the values entered in the textboxes in several asp pages. So what I did first in order to used all the datas is to have a submit button with an ONCLICK event. It pass all the values from the 1st page to the 2nd page (newsmc.asp) and it works fine. I also add an ONBLUR event which opens up another or the 3rd page/window (market.asp) that process an action depending on the values submitted from the 1st page. It also works fine.<br /><br />Here's the break code I've used:<br /><br /><FORM name="SalesBoundary" METHOD="Post" target="MapFrame"><br />....<br />....<br />....<br /><br /><INPUT Type="Submit" name="ButtonShow" Value="Show Clients" Onclick="this.form.action='newsmc.asp'; this.document.SalesBoundary.SGButtonShow.focus();" onblur="window.open('market.asp?SAList=<%=SAList%>&SOList=<%=SOList%>&SDList=<%=SDList%>&SGList=<=SGList>','newwin1','toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=yes,resizable=no ,copyhistory,yes,width=320,height=540,top=275,left =360')"><br /><br /></form><br /><br /><br />The 1st page is always visible coz its inside a multiframe page, in the left frame especifically. The 2nd page is the mainbody. The third page is in a pop-up window which can be triggered also using a button link in the mainbody.<br /><br />My problem is when I closed the 3rd page/pop-up window and open it again using the button link, it doesnt not recognized the values from the 1st page anymore. This 3rd page is always dependent on the content of the 1st page which is on the left frame and always visible. <br /><br />I already have a session variable in the 3rd page which requesting for values in the 1st page, and yet it still not working. Here's what I wrote:<br /><br />Session("saArea")= Request.QueryString("SAList")<br /> Area = Session("saArea")<br />Session("soArea")= Request.QueryString("SOList")<br /> Office = Session("soArea")<br />Session("sdArea")= Request.QueryString("SDList")<br /> District = Session("sdArea")<br />Session("sgArea")= Request.QueryString("SGList")<br /> Group = Session("sgArea")<br /><br />I did not put any Session.Abandon to make sure I'll get all the datas.<br /><br />What is wrong with my codes? What should I do in order to use all the values from 4 textboxes in the 1st page in other pages?<br /><br />I need anyones help badly. I'll greatly appreaciate it.<br />

Reply With Quote
  #2  
Old December 14th, 2000, 02:07 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : kr (eomdev_C@yahoo.com)</b></i><br />Hi Arbil,<br /> I would suggest u two things to od.<br />1. debug the application by trying to display the session variables using response.write on the 3rd page.If not displayed try to display on all teh pages as u move and see where there are loosing track.<br /><br />2. Try using 'Get' method and use Request.Form <br /><br />Good Luck<br />kr<br /><br /><br />------------<br />Arbil at 12/13/2000 9:38:07 PM<br /><br />I have this form wherein I have to use all the values entered in the textboxes in several asp pages. So what I did first in order to used all the datas is to have a submit button with an ONCLICK event. It pass all the values from the 1st page to the 2nd page (newsmc.asp) and it works fine. I also add an ONBLUR event which opens up another or the 3rd page/window (market.asp) that process an action depending on the values submitted from the 1st page. It also works fine.<br /><br />Here's the break code I've used:<br /><br /><FORM name="SalesBoundary" METHOD="Post" target="MapFrame"><br />....<br />....<br />....<br /><br /><INPUT Type="Submit" name="ButtonShow" Value="Show Clients" Onclick="this.form.action='newsmc.asp'; this.document.SalesBoundary.SGButtonShow.focus();" onblur="window.open('market.asp?SAList=<%=SAList%>&SOList=<%=SOList%>&SDList=<%=SDList%>&SGList=<=SGList>','newwin1','toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=yes,resizable=no ,copyhistory,yes,width=320,height=540,top=275,left =360')"><br /><br /></form><br /><br /><br />The 1st page is always visible coz its inside a multiframe page, in the left frame especifically. The 2nd page is the mainbody. The third page is in a pop-up window which can be triggered also using a button link in the mainbody.<br /><br />My problem is when I closed the 3rd page/pop-up window and open it again using the button link, it doesnt not recognized the values from the 1st page anymore. This 3rd page is always dependent on the content of the 1st page which is on the left frame and always visible. <br /><br />I already have a session variable in the 3rd page which requesting for values in the 1st page, and yet it still not working. Here's what I wrote:<br /><br />Session("saArea")= Request.QueryString("SAList")<br /> Area = Session("saArea")<br />Session("soArea")= Request.QueryString("SOList")<br /> Office = Session("soArea")<br />Session("sdArea")= Request.QueryString("SDList")<br /> District = Session("sdArea")<br />Session("sgArea")= Request.QueryString("SGList")<br /> Group = Session("sgArea")<br /><br />I did not put any Session.Abandon to make sure I'll get all the datas.<br /><br />What is wrong with my codes? What should I do in order to use all the values from 4 textboxes in the 1st page in other pages?<br /><br />I need anyones help badly. I'll greatly appreaciate it.<br />

Reply With Quote
  #3  
Old December 18th, 2000, 08:30 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Arbil</b></i><br />Thanks a lot Kr. I've tried you're suggestions but still the values are not being fetched.<br /><br />I used cookies instead and it works fine.<br /><br />Thanks again....<br /><br />------------<br />kr at 12/14/2000 12:07:13 PM<br /><br />Hi Arbil,<br /> I would suggest u two things to od.<br />1. debug the application by trying to display the session variables using response.write on the 3rd page.If not displayed try to display on all teh pages as u move and see where there are loosing track.<br /><br />2. Try using 'Get' method and use Request.Form <br /><br />Good Luck<br />kr<br /><br /><br />------------<br />Arbil at 12/13/2000 9:38:07 PM<br /><br />I have this form wherein I have to use all the values entered in the textboxes in several asp pages. So what I did first in order to used all the datas is to have a submit button with an ONCLICK event. It pass all the values from the 1st page to the 2nd page (newsmc.asp) and it works fine. I also add an ONBLUR event which opens up another or the 3rd page/window (market.asp) that process an action depending on the values submitted from the 1st page. It also works fine.<br /><br />Here's the break code I've used:<br /><br /><FORM name="SalesBoundary" METHOD="Post" target="MapFrame"><br />....<br />....<br />....<br /><br /><INPUT Type="Submit" name="ButtonShow" Value="Show Clients" Onclick="this.form.action='newsmc.asp'; this.document.SalesBoundary.SGButtonShow.focus();" onblur="window.open('market.asp?SAList=<%=SAList%>&SOList=<%=SOList%>&SDList=<%=SDList%>&SGList=<=SGList>','newwin1','toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=yes,resizable=no ,copyhistory,yes,width=320,height=540,top=275,left =360')"><br /><br /></form><br /><br /><br />The 1st page is always visible coz its inside a multiframe page, in the left frame especifically. The 2nd page is the mainbody. The third page is in a pop-up window which can be triggered also using a button link in the mainbody.<br /><br />My problem is when I closed the 3rd page/pop-up window and open it again using the button link, it doesnt not recognized the values from the 1st page anymore. This 3rd page is always dependent on the content of the 1st page which is on the left frame and always visible. <br /><br />I already have a session variable in the 3rd page which requesting for values in the 1st page, and yet it still not working. Here's what I wrote:<br /><br />Session("saArea")= Request.QueryString("SAList")<br /> Area = Session("saArea")<br />Session("soArea")= Request.QueryString("SOList")<br /> Office = Session("soArea")<br />Session("sdArea")= Request.QueryString("SDList")<br /> District = Session("sdArea")<br />Session("sgArea")= Request.QueryString("SGList")<br /> Group = Session("sgArea")<br /><br />I did not put any Session.Abandon to make sure I'll get all the datas.<br /><br />What is wrong with my codes? What should I do in order to use all the values from 4 textboxes in the 1st page in other pages?<br /><br />I need anyones help badly. I'll greatly appreaciate it.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Passing Variables 2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway