0 Hi Selvi,
If you have only requirement to fill in the textbox of selected item then i recommend to do in javascript.
In design,<asp:DropDownList ID="DropDownList1" runat="server"
onchange="AssignValue();">
</asp:DropDownList><br />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
In javascript,function AssignValue()
{
//Assign the value
var e = document.getElementById(" DropDownList1 ");
var strUser = e.options[e.selectedIndex].value;
//Assign the text
var e = document.getElementById(" DropDownList1 ");
var strUser = e.options[e.selectedIndex].text;
document.getElementById('TextBox1').value = strUser;
return false;
}
Hope this will help you.