Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 23rd, 2004, 03:51 AM
Authorized User
Join Date: Feb 2004
Location: Delhi, Delhi, India.
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
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

-.. -..
  #2 (permalink)  
Old April 23rd, 2004, 11:07 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

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" />

Work smarter, not harder
  #3 (permalink)  
Old April 23rd, 2004, 02:58 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:25 AM.

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