Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2007, 10:32 AM
Authorized User
 
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to preetham.sarojavenkatesh
Default how to obtain - for example(page.aspx?id=12)

can anybody tell m -how to obtain the value from the previous page in the current page..currently it gives value=0
i.e...
where parentid(is declared has global variable)
id_txt(is textbox value in previous page.)
private page_load()
Dim id1 As String = Server.HtmlEncode(Request.QueryString("id_txt"))

            If (Not (id1 Is Nothing)) Then
                iParentId = Integer.Parse(id1)
                Response.Write("value=: " & iParentId)
            Else
                iParentId = Nothing
                Response.Write("value=: " & iParentId)
            End If
end sub

preet
__________________
preet
 
Old August 30th, 2007, 10:41 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

...are you appending the the value of id_txt to the query string?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
 
Old September 11th, 2007, 12:24 PM
Authorized User
 
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to preetham.sarojavenkatesh
Default

yes.!

preet
 
Old September 11th, 2007, 12:40 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well provided that your querystring looks like

page.aspx?id_txt=55

Your code should work. Have you stepped through your code?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET

Professional IIS 7 and ASP.NET Integrated Programming

================================================== =========
 
Old September 11th, 2007, 12:47 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

 
Quote:
quote:...are you appending the the value of id_txt to the query string?
Quote:
quote:yes.!
Are you really? Earlier you said this:
Quote:
quote:id_txt(is textbox value in previous page.)
Quote:
Are you manually adding the value of the TextBox to the query string of the page you are referring to? Or do you expect the value to show up automatically as it in did in classic ASP (and other languages) using GET?

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to obtain Exception ID? MTLedari ASP.NET 2.0 Basics 3 December 11th, 2006 03:51 AM
How to pass the variables in Aspx page to Asp Page jayaraj ASP.NET 1.0 and 1.1 Basics 3 May 23rd, 2004 06:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.