ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP 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:
  #1  
Old July 14th, 2000, 10:36 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
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 />

Reply With Quote
  #2  
Old July 14th, 2000, 02:45 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
<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 />

Reply With Quote
  #3  
Old July 15th, 2000, 02:00 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
<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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Big problem for me.


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



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT