<tr> <td align="right"> <asp:Label ID="Application" runat="server" AssociatedControlID="Application">Application:</asp:Label> </td> <td> <asp:DropDownList ID="DropDownList1" runat="server" BackColor="#9999FF" Font-Bold="False" Font-Italic="True" Font-Names="Tahoma" Font-Size="Larger" ForeColor="White"> <asp:ListItem>----SELECT VALUE----</asp:ListItem> <asp:ListItem>CRX</asp:ListItem> <asp:ListItem>QA</asp:ListItem> <asp:ListItem>MFDL</asp:ListItem> <asp:ListItem>DMS</asp:ListItem> <asp:ListItem>CPGN</asp:ListItem> <asp:ListItem>INFOVIEW</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownList1" ErrorMessage="Application should be selected." Font-Size="Larger" ToolTip="Application should be selected." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator> </td> </tr>
this is the syntax to retrive the selected value in dropdown list that was added. string sel = ((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("DropDownList1")).SelectedItem.Text.Trim();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)