954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

can someone tell m whats the error!!!!

why am i not able to pass two values between pages
in first page for submit_btn.click()
Dim url As String
url = "Project.aspx?"
url &= "id=" & id_txt.Text & ""
url &= "age=" & age_txt.Text & ""
Response.Redirect(url)

----------------------------
In second page called Project.aspx:
sub page_load()
txtid.Text = "id:" & Request.QueryString("id")
txtage.Text = "age: " & Request.QueryString("age")
------------------------------
I get output has (Project.aspx?id=35age=)

preetham.saroja
Junior Poster in Training
82 posts since Jun 2007
Reputation Points: 5
Solved Threads: 1
 

Try

Dim  <a href="http://www.daniweb.com/forums/thread94848.html#">url</a>  As String
url = "Project.aspx?"
url &= "id=" & id_txt.Text & "&"
url &= "age=" & age_txt.Text
Response.Redirect(url)

----------------------------
In second page called Project.aspx try:

sub page_load()
txtid.Text = "id:" & Request("id")
txtage.Text = "age: " & Request("age")



This works for me

ptaylor965
Junior Poster
170 posts since Oct 2006
Reputation Points: 16
Solved Threads: 19
 

hey peter,
thanks for the reply .but still im n2 getting the required answer i dont know why?? im gettin only id value,but not the age value......
regards....
preetham

preetham.saroja
Junior Poster in Training
82 posts since Jun 2007
Reputation Points: 5
Solved Threads: 1
 

somebody plz tell m,how to perform cross page transfer.....

preetham.saroja
Junior Poster in Training
82 posts since Jun 2007
Reputation Points: 5
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You