What does this mean: Reference to a non-shared member requires an object reference.

I am writing a function for SSRS

Public Function Test() As String
System.Web.Httpresponse.Redirect("asdsa")
End Function


I am getting an error reading:
What does this mean:  Reference to a non-shared member requires an object reference.

I am not sure what it means?
Mr_ShawAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jasonduanConnect With a Mentor Commented:
try:

System.Web.HttpContext.Current.Response.Redirect(...);
0
 
ZhaolaiCommented:
Try this:

Response.Redirect("asdsa")
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
CodeCruiserCommented:
You are using HTTPResponse in Sql Server Reporting Services? Is this for ASP.NET?
0
 
Mr_ShawAuthor Commented:
Hi CodeCruiser,

ssrs is based on .net framwork..... I think
0
 
Mr_ShawAuthor Commented:
HI Zhaolai,

I can't do Response.Redirect("asdsa")  because SSRS want the entire reference..
0
 
jasonduanConnect With a Mentor Commented:
Did you try: System.Web.HttpContext.Current.Response.Redirect(...) ?
0
 
Mr_ShawAuthor Commented:
jasonduan:
I'll have to try it in the morning (uk time).. i'll let you kbnow the outcome.
0
 
Mr_ShawAuthor Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.