|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 />
|
|
#2
|
|||
|
|||
|
<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 />
|
|
#3
|
|||
|
|||
|
<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 />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Passing Variables 2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|