DropDownList in DetailsView

Discussion in 'ASP .Net' started by =?Utf-8?B?TWljaGFlbCBHcm9zcw==?=, May 7, 2006.

  1. Hello
    I have a GridView, and a DetailsView to edit the data. In the DetailsView I
    have two TemplateFields with a DropDownList in each TemplateField.
    Now I want that when the user selects an item in the first DropDownList a
    certain item in the second DropDownList is selected (as a suggestion for the
    user).

    I tried to write some code into the SelectedIndexChanged event, but I dont
    know how to access the second DropDownList there.

    thx
    Michael
     
    =?Utf-8?B?TWljaGFlbCBHcm9zcw==?=, May 7, 2006
    #1
    1. Advertising

  2. Hi Michael,

    On my website I dealt with all the possible scenarios (FormView, GridView,
    DetailsView) and using both ASP.NET server-side postbacks and asynchoronous
    communications using Atlas:
    http://www.webswapp.com/codesamples/aspnet20/dependentlists/default.aspx
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Michael Gross" wrote:

    > Hello
    > I have a GridView, and a DetailsView to edit the data. In the DetailsView I
    > have two TemplateFields with a DropDownList in each TemplateField.
    > Now I want that when the user selects an item in the first DropDownList a
    > certain item in the second DropDownList is selected (as a suggestion for the
    > user).
    >
    > I tried to write some code into the SelectedIndexChanged event, but I dont
    > know how to access the second DropDownList there.
    >
    > thx
    > Michael
    >
     
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, May 7, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Murugan V via DotNetMonster.com

    How to add the DropDownList and TextBox Control in DetailsView

    Murugan V via DotNetMonster.com, Jan 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    667
    Murugan V via DotNetMonster.com
    Jan 8, 2005
  2. P. Yanzick
    Replies:
    5
    Views:
    15,686
    visj4u
    Apr 27, 2007
  3. Dossman
    Replies:
    0
    Views:
    594
    Dossman
    May 24, 2006
  4. tartuffe2
    Replies:
    0
    Views:
    1,976
    tartuffe2
    Jun 28, 2006
  5. Feege
    Replies:
    0
    Views:
    472
    Feege
    Dec 20, 2005
Loading...

Share This Page