ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1737
Number of posts: 3308

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
selecting an Item in Dropdown List box Posted by kishorekaisna on 10 Dec 2002 at 12:56 AM
Hi
Problem reg ASP.Net drop down list box, can you help me...
Programmatically I want to select an Item when ever certain condition satisfies. For example
1)List of Items ( One, Two, Three),
2)User selects "Two" in the drop down and clicks next button - during this time the value selected is stored in session.
3)In the next screen - there is a back button , on click of which
i populate all the values user entered / selected (similer to wizard),

Problem is
I am able to populate values to all text boxes except to the above mentioned drop down list.
Pls help in selecting a particular ("Two" in example) list item.

Thanks for your time
with best regards
Kishore
Report
Re: selecting an Item in Dropdown List box Posted by rajesh_babu on 3 Jan 2003 at 11:42 PM
: Hi
: Problem reg ASP.Net drop down list box, can you help me...
: Programmatically I want to select an Item when ever certain condition satisfies. For example
: 1)List of Items ( One, Two, Three),
: 2)User selects "Two" in the drop down and clicks next button - during this time the value selected is stored in session.
: 3)In the next screen - there is a back button , on click of which
: i populate all the values user entered / selected (similer to wizard),
:
: Problem is
: I am able to populate values to all text boxes except to the above mentioned drop down list.
: Pls help in selecting a particular ("Two" in example) list item.
:
: Thanks for your time
: with best regards
: Kishore
:
Hi Kishore...
I think it is better to store Selected Index of DropDownList before leaving to another page by storing ddl.SelectedIndex into Cache("value") or Session("value") and later when U come back to this page U can retain the selection by ddl.SelectedIndex=Cache("value") or Session("value")...I hope this will work...

rgrds,
rajesh...



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.