|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Big problem for me.
<i><b>Originally posted by : Tommy Lim (tommylim@e-land.com.sg)</b></i><br />Hi,<br /><br />My problem is i have a <br />1) index.html and a viewtable.asp<br />For e.g. index has 2 hyperlink (shops and factory), and once anyone is click, viewtable.asp will be loaded in(not another new page), and display the database of property with field 'type' = shops.<br /><br />The thing is i need viewtable.asp to know which link did the user click so i can do the select or if statement.if not, i need to have a viewtable.asp for each property type.<br /><br />Please help...thanks<br /><br /><br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : skysurf (rawatanu@msu.edu)</b></i><br />It didn't exactly seem clear to me what you are wanting to do, but it seems like you can just use the QueryString properties of ASP pages for this.<br /><br />Example:<br /><br />On your index.asp page, add a querystring to the links:<br /><br /><a href="viewtable.asp?pastlink=shops">Click here for Shops</a><br /><BR><br /><A HREF="viewtable.asp?pastlink=factory">Click here for Factory</a><br /><br />--------------<br />When the user clicks on any of the two links, the asp page will store a text string (shops or factory) in a variable named pastlink.<br /><br />Then, you can retrieve the variable in your viewtable.asp page by using the QueryString property in VBScripting.<br /><br />example:<br /><br /><% <br /> PrevLink = Request.QueryString("pastlink")<br />If PrevLink = "shops" Then<br /> 'your statements for this option<br />ELSE IF PrevLink = "factory" Then<br /> 'your statements for this option<br />END IF<br />%><br /><br />Hope this helps!<br /><br /><br />------------<br />Tommy Lim at 7/14/2000 7:36:09 AM<br /><br />Hi,<br /><br />My problem is i have a <br />1) index.html and a viewtable.asp<br />For e.g. index has 2 hyperlink (shops and factory), and once anyone is click, viewtable.asp will be loaded in(not another new page), and display the database of property with field 'type' = shops.<br /><br />The thing is i need viewtable.asp to know which link did the user click so i can do the select or if statement.if not, i need to have a viewtable.asp for each property type.<br /><br />Please help...thanks<br /><br /><br />
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : Tommy Lim (tommylim@e-land.com.sg)</b></i><br /><br />Thanks!.<br /><br />Tommy Lim<br /><br />------------<br />skysurf at 7/14/2000 11:45:26 AM<br /><br />It didn't exactly seem clear to me what you are wanting to do, but it seems like you can just use the QueryString properties of ASP pages for this.<br /><br />Example:<br /><br />On your index.asp page, add a querystring to the links:<br /><br /><a href="viewtable.asp?pastlink=shops">Click here for Shops</a><br /><BR><br /><A HREF="viewtable.asp?pastlink=factory">Click here for Factory</a><br /><br />--------------<br />When the user clicks on any of the two links, the asp page will store a text string (shops or factory) in a variable named pastlink.<br /><br />Then, you can retrieve the variable in your viewtable.asp page by using the QueryString property in VBScripting.<br /><br />example:<br /><br /><% <br /> PrevLink = Request.QueryString("pastlink")<br />If PrevLink = "shops" Then<br /> 'your statements for this option<br />ELSE IF PrevLink = "factory" Then<br /> 'your statements for this option<br />END IF<br />%><br /><br />Hope this helps!<br /><br /><br />------------<br />Tommy Lim at 7/14/2000 7:36:09 AM<br /><br />Hi,<br /><br />My problem is i have a <br />1) index.html and a viewtable.asp<br />For e.g. index has 2 hyperlink (shops and factory), and once anyone is click, viewtable.asp will be loaded in(not another new page), and display the database of property with field 'type' = shops.<br /><br />The thing is i need viewtable.asp to know which link did the user click so i can do the select or if statement.if not, i need to have a viewtable.asp for each property type.<br /><br />Please help...thanks<br /><br /><br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > Big problem for me. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|