March 25th, 2003, 01:58 AM
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"
March 31st, 2003, 11:45 AM
You could do this.
Just place that where you want the link to be.
strPage = server.variable("PATH_INFO")
If strPage = "/A.asp" then
Response.Write("<a href = '/B.asp'>B</a>")
Response.Write("<a href = '/A.asp'>A</a>")
April 1st, 2003, 01:25 AM
Thx a lot,
but now I use
url = "AttIndHome.aspx?UserID=" + txtA_UN.Text
I believe is a better approach , because You can pass parameters to the next page