Priya Bm

Priya Bm

  • NA
  • 33
  • 24.3k

How to avoid updating SELECT from dropdown list into db

Jul 2 2015 5:26 AM
Hi,
 
I have a dropdownlist in grid
    
<asp:DropDownList ID="ddlstatus" runat="server">
<asp:ListItem>Select</asp:ListItem>
<asp:ListItem>Approved</asp:ListItem>
<asp:ListItem>Reject</asp:ListItem>
</asp:DropDownList>
 
During update if i wont select any value , first value i.e. Select is getting update into db. which should not happen
 
How to avoid this in c#? 
 

Answers (3)