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
zeze box
NA
1
2.3k
question about Response.Write/Redirect
Aug 22 2010 1:46 AM
how can i use these two commands together when i try it it works but the redirect activates before i can see my write. for example when i click my update button inside the code i would put all the stuff i want to send to a database, but if an error occurs i want to reply with a message then redirect after the user clicks ok on that pop-up. anyways heres the code im using for the .write .redirect:
Response.Write("<script>alert('Update Unsuccessful');</script>");
Response.Redirect("Page.aspx");
ill have this in an if statement checking for problems if something comes up i want the user to know what they did wrong then it redirects them to the same page.
Reply
Answers (
1
)
Protect User Settings
SelectedValue which is invalid because it does not exist in the list of items.