943,694 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1043
  • VB.NET RSS
Oct 30th, 2007
0

can someone tell m whats the error!!!!

Expand Post »
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=)
Similar Threads
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007
Oct 30th, 2007
0

Re: can someone tell m whats the error!!!!

Try
VB.NET Syntax (Toggle Plain Text)
  1. Dim <a rel="nofollow" href="http://www.daniweb.com/forums/thread94848.html#" target="_blank">url</a> As String
  2. url = "Project.aspx?"
  3. url &= "id=" & id_txt.Text & "&"
  4. url &= "age=" & age_txt.Text
  5. Response.Redirect(url)
  6.  
  7. ----------------------------
  8. In second page called Project.aspx try:
  9.  
  10. sub page_load()
  11. txtid.Text = "id:" & Request("id")
  12. txtage.Text = "age: " & Request("age")
This works for me
Reputation Points: 16
Solved Threads: 19
Junior Poster
ptaylor965 is offline Offline
169 posts
since Oct 2006
Oct 31st, 2007
0

Re: can someone tell m whats the error!!!!

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
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007
Nov 1st, 2007
0

Re: can someone tell m whats the error!!!!

somebody plz tell m,how to perform cross page transfer.....
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Separating Names
Next Thread in VB.NET Forum Timeline: Opening WMV from internet link with VB exe





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC