how can I get the first index of a radlistbox ?

2 posts, 0 answers
  1. Hamza
    Hamza avatar
    24 posts
    Member since:
    Feb 2011

    Posted 21 Sep 2011 Link to this post

    Hi all :)


    how can I get the first index or specified index of a rad list box ?


    for example:


    I want to put the value of a the first or second index as a text in a textbox


    how can I do that ?


    thank you all :)
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Sep 2011 Link to this post

    Hello Hamza,

    You can try the following code to achieve your scenario.
    C#:
    protected void Button1_Click(object sender, EventArgs e)
       {
           TextBox1.Text = RadListBox1.Items[0].Text;
       }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top