2.
<asp:DropDownList ID="ddlOwner" runat="server" Width="350px"
DataSourceID="sqlOwner" AppendDataBoundItems="true" DataTextField="OWNER" DataValueField="SYSTEM_ID"
SelectedValue='<%# Common.GetSelectedDDLValue(Eval("OWNER"), string.Empty) %>' >
<asp:ListItem Text="" Value="" />
</asp:DropDownList>
3.
public class Common
{
public static string GetSelectedDDLValue(object evalValue, string notSelectedValue)
{
//CODE
}
}
error-msg.PNG
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.