Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

selecting an Item in Dropdown List box

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