Skip to content
Loading
  • 0
    Thanks Praveen
    I tried the second one with selectidexexchanded and i have autopostback properyty as well but it is not working
    About the first one with JQuery I could not try it becuase it is not compete
    please help

    DataTextField="VideoName" DataValueField="MaId" AutoPostBack="true" Width="130px" Height="25px" AppendDataBoundItems="true" OnSelectedIndexChanged="selectForTextBox">

    Select Lecture


    *

    runat="server" ValidationGroup="click2" InitialValue="Select Lecture" SetFocusOnError="true" />

    SelectCommand="SELECT [MaId], [VideoName] FROM [Material] ">



    Code behind


    protected void selectForTextBox(object sender, EventArgs e)

    {

    var selectvalue = ((DropDownList)sender).SelectedValue;

    TextBox1.Text = selectvalue;

    }


    Also I tried this javascript code



    I appreciate your help very much
    0