ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 25th, 2003, 01:58 AM
Isambella Isambella is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 13 Isambella User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question link two pages

hello to all! ! !

I would like to learn how can i link 2 pages

For ex. I have the pages "A.aspx" and the page "B.aspx" . At "A" I have a button that must link to "B".

I use ASP.NET with VB.Scrept and I nead to know that statement pls.

this is what I try to do but is wrong

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
url = "/B.aspx"
End Sub

Thx
Isambella

Reply With Quote
  #2  
Old March 31st, 2003, 11:45 AM
defjamninja defjamninja is offline
Overly white
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Fresno, CA
Posts: 83 defjamninja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
You could do this.
Code:
<%
Dim strPage
strPage = server.variable("PATH_INFO")

If strPage = "/A.asp" then
  Response.Write("<a href = '/B.asp'>B</a>")
else
  Response.Write("<a href = '/A.asp'>A</a>")
End If
%>


Just place that where you want the link to be.

Reply With Quote
  #3  
Old April 1st, 2003, 01:25 AM
Isambella Isambella is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 13 Isambella User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thx

Thx a lot,

but now I use

url = "AttIndHome.aspx?UserID=" + txtA_UN.Text
Response.Redirect(url)

I believe is a better approach , because You can pass parameters to the next page

thx again
Isambella

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > link two pages


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 1 hosted by Hostway