| | |
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 |
.net .net2008 2008 access add advanced application array assignment basic beginner box browser button buttons center click client code combo convert cpu cuesent data database datagrid datagridview datetimepicker designer dissertation dissertations dissertationtopic eclipse editvb.net employees excel exists filter forms function html images isnumericfuntioncall listview map mobile module msaccess mssqlbackend mysql net number open page pan panel pdf picturebox picturebox2 port position print printing printpreview read record regex reuse right-to-left save search serial settings socket sorting sqldatbase sqlserver storedprocedure temp textbox timer timespan transparency txttoxmlconverter usercontol vb vb.net vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web winsock wpf wrapingcode xml year





