Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do you use response.redirect in a class module?

Posted on 2005-04-16
3
Medium Priority
?
301 Views
Last Modified: 2012-06-21
I feel stupid asking this, but I've got to know. When I code "Response.Redirect" in my code behind module, it works. But if I attempt to use it in a separate class module, it doesn't work, saying "Object Not Declared." I've imported the all the proper namespaces, but no go? What's going on? I'm coding in vb. Thanks.
0
Comment
Question by:barnesco
  • 2
3 Comments
 
LVL 20

Expert Comment

by:ihenry
ID: 13799869
First import System.Web namespace then use this syntax

HttpContext.Response.Redirect()
0
 
LVL 20

Accepted Solution

by:
ihenry earned 500 total points
ID: 13799870
Oops.. I meant,

HttpContext.Current.Response.Redirect( "<path>" )
0
 

Author Comment

by:barnesco
ID: 13799878
I just realized that "Inherits System.Web.UI.Page" does it, too. Thanks for your quick response!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Screencast - Getting to Know the Pipeline
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

577 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