can someone tell m whats the error!!!!

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jun 2007
Posts: 82
Reputation: preetham.saroja is an unknown quantity at this point 
Solved Threads: 1
preetham.saroja's Avatar
preetham.saroja preetham.saroja is offline Offline
Junior Poster in Training

can someone tell m whats the error!!!!

 
0
  #1
Oct 30th, 2007
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=)
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 169
Reputation: ptaylor965 is an unknown quantity at this point 
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

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

 
0
  #2
Oct 30th, 2007
Try
  1. Dim <a rel="nofollow" class="t" 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
Peter Taylor
Visual Basic.NET Application Developer

TaylorsNet
http://www.taylorsnet.co.uk
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 82
Reputation: preetham.saroja is an unknown quantity at this point 
Solved Threads: 1
preetham.saroja's Avatar
preetham.saroja preetham.saroja is offline Offline
Junior Poster in Training

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

 
0
  #3
Oct 31st, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 82
Reputation: preetham.saroja is an unknown quantity at this point 
Solved Threads: 1
preetham.saroja's Avatar
preetham.saroja preetham.saroja is offline Offline
Junior Poster in Training

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

 
0
  #4
Nov 1st, 2007
somebody plz tell m,how to perform cross page transfer.....
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC