Solved

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

Posted on 2010-11-18
9
730 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:Mr_Shaw
9 Comments
 
LVL 14

Accepted Solution

by:
BigBadWolf_000 earned 167 total points
ID: 34166709
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 333 total points
ID: 34166984
try:

System.Web.HttpContext.Current.Response.Redirect(...);
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 34167040
Try this:

Response.Redirect("asdsa")
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34167082
You are using HTTPResponse in Sql Server Reporting Services? Is this for ASP.NET?
0
 

Author Comment

by:Mr_Shaw
ID: 34167098
Hi CodeCruiser,

ssrs is based on .net framwork..... I think
0
 

Author Comment

by:Mr_Shaw
ID: 34167116
HI Zhaolai,

I can't do Response.Redirect("asdsa")  because SSRS want the entire reference..
0
 
LVL 11

Assisted Solution

by:jasonduan
jasonduan earned 333 total points
ID: 34168016
Did you try: System.Web.HttpContext.Current.Response.Redirect(...) ?
0
 

Author Comment

by:Mr_Shaw
ID: 34168433
jasonduan:
I'll have to try it in the morning (uk time).. i'll let you kbnow the outcome.
0
 

Author Closing Comment

by:Mr_Shaw
ID: 34182934
thanks
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question