Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

selecting an Item in Dropdown List box

kishorekaisnakishorekaisna Member Posts: 1
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

Comments

  • rajesh_baburajesh_babu Member Posts: 5
    : 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...
Sign In or Register to comment.