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
Jes Sie
742
1.2k
281k
failed to redirect to another page.
Apr 21 2017 3:58 AM
Can someone tell why the code below failed to redirect to the specied URL? The front-end of this code resides inside a tab container. Could it be the reason why it failed to redirect?
string
message =
"New motor policy "
+ motorpolicy +
" has been successfully saved."
;
string
script =
"window.onload = function(){ alert('"
;
script += message;
script +=
"');"
;
script +=
"window.location = '"
;
script += ResolveUrl(
"../d-Underwriting/Motor/CheckCustomerMotorDataEntry.aspx"
);
script +=
"'; }"
;
ClientScript.RegisterStartupScript(GetType(),
"SuccessMessage"
, script,
true
);
Reply
Answers (
2
)
Performance improvement for My C# application
How to give validation for password in mvc