| | |
can someone tell m whats the error!!!!
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
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=)
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=)
Try This works for me
VB.NET Syntax (Toggle Plain Text)
Dim <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread94848.html#" target="_blank">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")
![]() |
Similar Threads
- VB6 - How to write a blank Line after writing each record. (Visual Basic 4 / 5 / 6)
- update,delete,cancel buttons for datagrid (VB.NET)
- Ned Help With Hijack This Log! (Viruses, Spyware and other Nasties)
- newcommer to c++ need help with simple program (C++)
- RIS Question (Windows NT / 2000 / XP)
- what is the problem with this app (Java)
- Packaging? (Visual Basic 4 / 5 / 6)
- Cannot figure out why I'm getting these Errors (Java)
- Aedin: (Yet Another) Rundll32 Error problem (Viruses, Spyware and other Nasties)
- Cannot get method in project to work (Java)
Other Threads in the VB.NET Forum
- Previous Thread: Separating Names
- Next Thread: Opening WMV from internet link with VB exe
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access arithmetic array assignment basic binary bing box button buttons center check code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dosconsolevb.net dropdownlist editvb.net excel file-dialog firewall folder ftp google hardcopy image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net networking opacity output peertopeervideostreaming picturebox picturebox1 port print printpreview problemwithinstallation project record reports" save savedialog searchbox serial soap sorting string tcp temp text textbox timer toolbox trim updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio web wpf





