Solved

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

Posted on 2010-11-18
9
802 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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