Solved

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

Posted on 2010-11-18
9
756 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This script will sweep a range of IP addresses (class c only, 255.255.255.0) and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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