forum

Home / DeveloperSection / Forums / Populate text boxes on dropdownlist select in asp.net

Populate text boxes on dropdownlist select in asp.net

Anonymous User 1851 08-Dec-2014

I am new at asp.net. I have a dropdownlist which is populated in code behind. When I select any item from dropdownlist, it should populate two textbox and another dropdownlist according to data from table.

 

<asp:DropDownList runat="server" ID="dropDownExisting"></DropDownList><br />
<asp:TextBox ID="txtPromotion" runat="server" Width="77px" ></asp:TextBox><br />
<asp:TextBox ID="txtSubject" runat="server" Width="288px"></asp:TextBox><br />
<asp:DropDownList ID="dropDownType" runat="server">
    <asp:ListItem>Monthly Newsleter</asp:ListItem>
    <asp:ListItem>Webbinar Newsleter</asp:ListItem>
    <asp:ListItem>Annoucement</asp:ListItem>
</asp:DropDownList>

I want it to be done on client side. Where do I have to provide database connectivity? Do I require to use ajax control like update panel? Or javascript will work well? I want it on client side.


Updated on 08-Dec-2014
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By