| | |
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 |
Tag cloud for VB.NET
.net .net2008 2008 access advanced application array basic beginner browser button buttons center checkbox click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function html images input internet lib listview map mobile module msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search serial settings shutdown socket sorting sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter usercontol validation vb vb.net vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web webbrowser winforms winsock wpf wrapingcode xml year





