Issue:how Set Prompt value for Cascading DropDownlist?

Last post 09-12-2008 1:50 AM by sandeepkapil. 3 replies.

Sort Posts:

  • Issue:how Set Prompt value for Cascading DropDownlist?

    09-29-2007, 1:32 AM

     hai there,

    in my asp.net web page i have 2 dropdownlist,

    for the 1st ddl--Binding data through web service method,(using cascadingdropdown1)

    for the 2nd ddl-Binding data  through web service method,(using cascadingdropdown2)

    no relation btwn the 1st and 2nd,(not passing any values from 1st to the 2nd one )

    here after the submit event is fired,the cascading dropdowns holding back the last values set by the user,

    here i want to set the prompt text after the submit event,

    since there is no properties such as prompt value in cascadingdropdown,

    not able to clear the values once after the submit event,

    it will not be  problem if the 1st ddl is not using the cascading, 

    since there is no relation btwn the two ddl, im using the cascading ddl for BOTH ,


     prakash

    TelesoftIndia 

     

  • Re: Issue:how Set Prompt value for Cascading DropDownlist?

    09-29-2007, 3:02 PM
    • Star
      8,978 point Star
    • dwhite
    • Member since 02-08-2007, 2:25 PM
    • Bristol, CT
    • Posts 1,422

    Not sure I understand what you are trying to accomplish; look at the sample and using a database sample, hopefully you'll find an answer there.

    -Damien

    Visoft, Inc - Home | Blogs

    Latest Blog Post: Silverlight DataBinding Bug
  • Re: Issue:how Set Prompt value for Cascading DropDownlist?

    10-04-2007, 9:46 AM
    Answer

    Hi Prakash,

    prakashtelesoft:
    no relation btwn the 1st and 2nd,(not passing any values from 1st to the 2nd one )

    Since the two DropDownLists have no relationship, then why do you use CascadingDropDownExtender?  In my opinion, binding a DataSet directly is a more efficient way.  Of course , we can use it, but not recommended.

    prakashtelesoft:
    here after the submit event is fired,the cascading dropdowns holding back the last values set by the user,

    Have you set the PromptText and LoadingText properties? Also you should check your source code if you have set the selected value.  The WebService is another place should be reviewed.

    Hope this helps.

    Best  regards,

    Jonathan

     

     

     

     

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Issue:how Set Prompt value for Cascading DropDownlist?

    09-12-2008, 1:50 AM
    • Member
      2 point Member
    • sandeepkapil
    • Member since 09-12-2008, 1:47 AM
    • Posts 1

    You can set the Prompt Text of the Cascade Dropdown list to " Please select" or whatever you like....but the tricky bit is if you don't have any values and you want to change it on the fly how you do it??

     

    Cheers,
    Sandeep Kapil.

Page 1 of 1 (4 items)