TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Inżynier Umair
NA
134
10.7k
Insert data into sql from web form
Apr 30 2016 8:19 PM
<asp:DropDownList ID="ddltype" runat="server" CssClass="dropspace" Style="width: 95%; float: left">
<asp:ListItem >SELECT YOUR GADGE</asp:ListItem>
<asp:ListItem >Laptop</asp:ListItem>
<asp:ListItem >Desktop</asp:ListItem>
<asp:ListItem >Printer</asp:ListItem>
</asp:DropDownList>
Everything works fine but the problem is that the list item SELECT YOUR GADGET is also inserts into sql database if i dont select any gadget and click on submit button. Please help me out from this problem.
NOTE: THE BACKEND CODE IS WRITTEN IN C#.
Reply
Answers (
2
)
GOOGLE MAPS ASP.NET MVC PROJECT EXPORT KMZ
How to Select data field to display in drop down list ?