Select a value in dropdown list

Discussion in 'ASP .Net Web Controls' started by Julien, Jul 16, 2003.

  1. Julien

    Julien Guest

    Hi,

    I have a problem to select an item of radio buttonlist for another
    usercontrol, in this case "uc6".

    How can I can the ID of item 4 passed to the other usercontrol ?

    ============================================= code ===========

    <asp:radiobuttonlist id="RadioButtonList1" EnableViewState="True"
    runat="server">
    <asp:ListItem Value="0"></asp:ListItem>
    <asp:ListItem Value="1"></asp:ListItem>
    <asp:ListItem Value="2"></asp:ListItem>
    <asp:ListItem Value="3"></asp:ListItem>
    <asp:ListItem Value="4"></asp:ListItem>
    </asp:radiobuttonlist><uc6:new_value id="ucContribHours"
    Minutes="null" Hours="null" Runat="server"></uc6:new_value>

    ===============================================================

    I hope it's clear enought for you to understand the problem :)

    Thank you in advance for your answer

    Julien T.
    Netarchitects
    Julien, Jul 16, 2003
    #1
    1. Advertising

  2. Julien

    Jon Yates Guest

    Hello.

    When do you want to pass the value? After you select the
    Radio Button, or on a button click?

    You may have to put accessor functions in the user control
    and pass in the id from the form after an event has fired?

    I may have misunderstood what you are doing though?

    Jon

    >-----Original Message-----
    >Hi,
    >
    >I have a problem to select an item of radio buttonlist

    for another
    >usercontrol, in this case "uc6".
    >
    >How can I can the ID of item 4 passed to the other

    usercontrol ?
    >
    >============================================= code

    ===========
    >
    ><asp:radiobuttonlist id="RadioButtonList1"

    EnableViewState="True"
    >runat="server">
    > <asp:ListItem Value="0"></asp:ListItem>
    > <asp:ListItem Value="1"></asp:ListItem>
    > <asp:ListItem Value="2"></asp:ListItem>
    > <asp:ListItem Value="3"></asp:ListItem>
    > <asp:ListItem Value="4"></asp:ListItem>
    ></asp:radiobuttonlist><uc6:new_value id="ucContribHours"
    >Minutes="null" Hours="null"

    Runat="server"></uc6:new_value>
    >
    >==========================================================

    =====
    >
    >I hope it's clear enought for you to understand the

    problem :)
    >
    >Thank you in advance for your answer
    >
    >Julien T.
    >Netarchitects
    >.
    >
    Jon Yates, Jul 16, 2003
    #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. =?Utf-8?B?SklNLkgu?=

    Q: select value in dropdown list

    =?Utf-8?B?SklNLkgu?=, Apr 14, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    466
    William F. Robertson, Jr.
    Apr 15, 2005
  2. vishnu
    Replies:
    1
    Views:
    1,202
    Patrick.O.Ige
    Mar 25, 2006
  3. Mike
    Replies:
    1
    Views:
    802
  4. =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?=

    Dropdown List - Check if value exists in list prior to selection

    =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?=, Mar 10, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    1,986
    =?Utf-8?B?QnJlbmRlbg==?=
    Mar 20, 2007
  5. mcauliffe
    Replies:
    5
    Views:
    333
    Billy
    Jan 26, 2007
Loading...

Share This Page