Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To what namespace does Response.Redirect belong to?

Tags:

c#

.net

asp.net

When i write this in a static class i get red line bellow Response:

  Response.Redirect("ErrorPage.aspx.aspx?Error=" + READERROR);

It asks me whether i have got a missing assembly. How do i fix this?

like image 839
Matrix001 Avatar asked May 29 '11 07:05

Matrix001


1 Answers

Namespace: System.Web

Assembly: System.Web (in System.Web.dll)

But if you are defining in Static class, then I think it should be...

HttpContext.Current.Response.Redirect(....);
like image 93
Muhammad Akhtar Avatar answered Nov 15 '22 23:11

Muhammad Akhtar