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
avijit chatterjee
NA
16
0
problem in calling dropdown ....through if-else
Aug 16 2010 5:08 AM
i want to do is if drop down list selected value will be "electrical" then page redirect to the elec.aspx.
protected void apply_Click(object sender, EventArgs e)
{
string DEPT = "";
library lib = new library();
string strdepartment_name = ddrdepartment.SelectedValue.Trim();
DataTable dtdeptname = new DataTable();
dtdeptname = lib.Getdeptname(strdepartment_name);
DEPT = lib.Getdeptname(strdepartment_name);
if (DEPT == "CIVIL")
{
Response.Redirect("CIVIL.aspx");
}
else if (DEPT == "ELECTRICAL")
{
Response.Redirect("ELEC.aspx");
}
else
{
Response.Redirect("MECH.aspx");
}
}
please someone help me ...i m not getting properly....
Reply
Answers (
1
)
How to convert text to image in vb.net
how to Export data Grid View values into Excel using C#