how to define two textbox with one label

May 13 2010 4:53 AM
<asp:Label ID="lblEmployeename" runat="server" Style="position: static" Text="Employee  Name" Width="118px"></asp:Label></td>
<td style="height: 1px" align="left">
<asp:DropDownList ID="ddrpref" runat="server" Style="position:static"Width="45px"></asp:DropDownList></td>
                <td align="left" style="width: 37px; height: 1px">
<asp:TextBox ID="txtEmployeename" runat="server" BorderStyle="Double" >


code-behing page given below:-
            string stremployeename = ddrpref.SelectedValue.Trim();
            string stremployeename = txtEmployeename.Text.Trim();

how i can declare both....

Answers (1)