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
Nisha Dhawan
NA
1
0
Response.RedirectLocation and 404 Page Status
May 1 2009 8:40 AM
Hi All, On my page, if data is not found, i want to redirect my page to some customized page ( saying data not found) with a status code 404 so that google dont crawl it. I am using following code - Response.Clear(); Response.Status = "404 not found."; Response.StatusCode = 404; Response.AddHeader( "Location", "error.htm"); Response.RedirectLocation= "/error.htm"; It sets my page status to 404 but doesnt redirect to "error.htm", however this code works for 301 & 302 redirection. If anyone have idea, please help me out.
Reply
Answers (
2
)
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameter...
Authorization