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
Duke
NA
1
0
Dropdownlist
Aug 12 2010 5:48 AM
Hi im trying to store selected value from a dropdown list on a web application but it keeps storing the 1st value each time.
Please hel
p, below is a snippet of my code:
if (chkActive.Checked == true)
{
active = 1;
}
else
{
active = 0;
}
string acctype = ddlAccType.SelectedValue.ToString();
string title = ddlTitle.SelectedValue.ToString();
string bank = ddlBank.SelectedValue.ToString();
MWDataManager.DataManager addPer = new MWDataManager.DataManager();
addPer.ConnectionString = ConfigurationSettings.AppSettings["ConnectionString"];
addPer.SqlStatement = "spAddPersonel";
Reply
Answers (
1
)
Unable to update database from datagridview
Secure Code?