Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 March 24th, 2006, 08:13 AM
Authorized User
 
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in selecting the item from drop down list

Hi all,

I want my application to work in following way,

I am displaying the list of job using datagrid.By default all jobs will be displayed. A dropdown list is provided to select a category. I have set the dropdownlists autopostback event equal true. I am displaying the job depending on category.

All things working fine except the first item don't get selected. after post back i want to display the name of item selected. but it showing the first item every time.

Please help.


 
Old March 27th, 2006, 01:24 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

sounds like you are reloading the data on every post back. Put the code that fills the ds in an:
If Not IsPostBack Then
 ..fill ds
end if






Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting itme from drop down list in script hericles ASP.NET 1.0 and 1.1 Basics 7 August 21st, 2007 01:21 PM
problem selecting listview item method Visual C++ 0 July 7th, 2006 04:06 PM
Problem with Drop down list praveen_haridas ASP.NET 1.0 and 1.1 Basics 3 January 26th, 2006 05:55 AM





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