|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 pagethx again Isambella |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > link two pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|