Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Getting problem in gridview EditItemTemplate
Mohit Juneja
Jul 16 2013 7:10 AM
1.3k
Reply
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue = '<%# Bind("Gender") %>'>
<asp:ListItem Text="Select Gender" Value="Select Gender"></asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
Showing me error : DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Help with extract files from zip to .jar
How to avoid the duplicate Entry ?