Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 April 23rd, 2004, 03:51 AM
Authorized User
 
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default Page Linking though DropDown Lists

Among Other Controls MyPage also contains a SropDown List and
a Hyperlink.
When A user Slects an item from the list and Clicks the Hyprlink, a
new Page is displayed.
What i want is to display the new page as soon as the user selects an item from the DropDownlist.

In the Home Page of this Forum there is a DropDownlist at the Bottom Right of the Page

                        Jump to Forum
As soon as I select an item from the List the new page gets
displayed.
This is what I want with my Page

If the solution to my problem is Posting to new Page using Forms
then please advise me some help links on that topic

__________________
-.. -..
 
Old April 23rd, 2004, 11:07 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

All you need to do is turn set AutoPostback to "True" on the dropdownlist control. This will make the Html <select> control fire the form post when it's "onChange" client event is called. Just the same way as the "Jump To:" selector on this site works. However, ASP.Net handles creating the javascript for you. You need only set that attribute to turn it on.

<asp:dropdownlist Runat="server" ID="dropdownlist1" AutoPostBack="True" />

Peter
-------------------------
Work smarter, not harder
 
Old April 23rd, 2004, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can then catch the change on the server side via the SelectedIndexChanged event.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding DropDown Lists in Asp.Net venkat_vitala ASP.NET 1.0 and 1.1 Basics 1 January 17th, 2007 09:16 AM
Linked Dropdown Lists contagiouss_blue Beginning VB 6 1 June 8th, 2005 10:35 AM
dependent dropdown lists vivshah VS.NET 2002/2003 1 March 29th, 2004 05:25 PM
2 tables and 2 dropdown lists collie Classic ASP Databases 0 October 20th, 2003 07:20 AM





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