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 June 17th, 2005, 08:51 AM
Authorized User
Join Date: Aug 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default choosing from drop down list

i have a drop down list that populates data from sql table,what i want to do is that when ever the user cosses a value it takes him to hyperlink that shows a form,for example if he choose DFRS from the drop down list,it takes him to First.aspx page and so on with all the values and at the same time it saves a session with the name of that value,when clicking DFRS ,it saves a session "DFRS" to the other linked page....can u help me do that plz

Old June 17th, 2005, 02:49 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

Use the selectedindexchanged event of the dropdownlist. Grab the value and redirect as needed. Before you redirect, place the value in a session variable.

Old July 1st, 2005, 05:57 AM
Authorized User
Join Date: Feb 2005
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ashokparchuri Send a message via Yahoo to ashokparchuri

     if u r getting data from sql server you keep that coding in ifnotpage.ispostback tags else when u select any item in dropdownlist it directly goes to firstelement in dropdownlist ok.

Hope This Helps-Ashok Parchuri

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing Multiple Items in a List Box HenryE Access 1 July 25th, 2005 07:14 AM
drop down list values based on another drop down noor ASP.NET 1.0 and 1.1 Basics 3 July 5th, 2005 09:57 AM
Drop Down List mrideout BOOK: Beginning ASP.NET 1.0 6 March 18th, 2005 03:32 AM
Drop downs for choosing # of pages gilgalbiblewheel Classic ASP Databases 3 October 21st, 2004 03:12 PM
Drop Down List mrideout BOOK: Beginning ASP.NET 1.0 8 September 16th, 2004 07:11 AM

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