Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 3rd, 2004, 06:21 AM
Authorized User
Join Date: Jul 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default navigate from one webform to another programatical

I want to navigate from one form to another,and in which i want also
navigate a variable.
ie when i clicked on a button ,then the text of a textbox on that form
also navigate,so that i can used that text in the new webform.

Old August 3rd, 2004, 08:07 AM
Authorized User
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda

I am considering that you are using VB.Net
Let the Event handler of the button click event be ..
sub button1_click
       response.redirect("newpage.aspx?carrytext=" & textbox1.text)
end sub

where newpage is the name of your new file and carrytext is the name of the argument

Once in NewPage you can access carrytext using

e.g. response.write(request("carrytext"))

Old August 3rd, 2004, 03:23 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


You can also use JavaScript using the location property, window.location = "newpage.aspx?text=<%=TextBox1.Text%>";

Just in case you need it, although the server-side solution would be more convenient.


Similar Threads
Thread Thread Starter Forum Replies Last Post
navigate dataitem in datagrid mvenkatesan VS.NET 2002/2003 0 May 24th, 2007 01:52 AM
Navigate through nodes abelmirma XML 1 May 7th, 2005 07:32 AM
Navigate through Datagrid Abhinav_jain_mca General .NET 2 September 8th, 2004 01:10 AM
Programatical insert DataGrid admin@martine.cz ASP.NET 1.0 and 1.1 Professional 0 May 5th, 2004 03:56 AM
How to navigate alyeng2000 ADO.NET 1 December 8th, 2003 10:26 AM

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