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
anjumathi kumar
NA
54
64k
Show Alertbox
Jul 8 2011 5:09 AM
protected void btnConnect_Click(object sender, EventArgs e)
{
try
{
dbquery.getconnection(txtsname.Text, txtuname.Text, txtpwd.Text);
pnlDB.Visible = true;
pnlCN.Visible = true; ddlDB();
}
catch (Exception ex)
{
lblex.Visible = true; string p = ex.Message.ToString();
Response.Write("<script language='javascript'>alert(" + p + ")</script>");
lblex.Text = p;
pnlDB.Visible = false; pnlCN.Visible = true; }
}
I tried to connect server ..its not correct info it want to show error msg in alert box serverside
How to show the catch error in alertbox in server side
Reply
Answers (
4
)
Check if Dataset is Null?
Combining Console and Windows Form Application