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
Vinay Telang
NA
1
597
How to show browser message and on message click event need
Mar 9 2016 8:27 AM
In asp.net page by entering the below mentioned code BROWSER is only showing the message but what if i want to ADD Buttons which i created like --> OK and CANCEL and on OK button i have to write some code?
if (isUpdateXMLReportDataSuccess == true)
{
Response.Write(@"<SCRIPT LANGUAGE=""JavaScript"">alert('" + "Bug created successfully." + "')</SCRIPT>");
Response.Redirect("./ManageDefects.aspx");
}
else
{Response.Write(@"<SCRIPT LANGUAGE=""JavaScript"">alert('" + "Bug not created successfully." + "')</SCRIPT>"); return;}
Also here i want to ask that in my case if the isUpdateXMLReportDataSuccess is TRUE So according to code browser first should need to showing the message i.e "Bug created successfully." and then it should Re-directly Redirect("./ManageDefects.aspx");
But in my case it goes to `Response.Write(@"<SCRIPT LANGUAGE=""JavaScript"">alert('" + "Bug created successfully." + "')</SCRIPT>");` but not showing the message on BROWSER and directly goes to Response.Redirect("./ManageDefects.aspx");
ITS NOT SHOWING THE BROWSER MESSAGE.
Reply
Answers (
0
)
Object reference not set to an instance of an object
Graph