Solved

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

Posted on 2010-11-18
9
689 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
 
LVL 83

Expert Comment

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

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now