473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

rewriting 1.1 in asp.net 2.0 problems

I am rewriting a .NET 1.1 web application in 2.0 and there are several
pieces of code in the 1.1 version that I'm not sure how to rewrite for
2.0.

Whenever I use the Page object or the Reponse object I get the following
errors :

The name 'Page' does not exist in the current context
The name 'Response' does not exist in the current context

For example from this code :

Page.RegisterStartupScript("redirect", strRedirect);
Response.Flush();
What do I need to do to fix this?
Thanks,

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Mar 1 '06 #1
1 1001
Try using ClientScript instead of Page and instead of just Response, try HttpContext.Current.Response....

--
Adrian Parker
Ingenuity At Work Ltd

"Mike P" <mi*******@gmail.com> wrote in message news:e1*************@TK2MSFTNGP14.phx.gbl...
I am rewriting a .NET 1.1 web application in 2.0 and there are several
pieces of code in the 1.1 version that I'm not sure how to rewrite for
2.0.

Whenever I use the Page object or the Reponse object I get the following
errors :

The name 'Page' does not exist in the current context
The name 'Response' does not exist in the current context

For example from this code :

Page.RegisterStartupScript("redirect", strRedirect);
Response.Flush();
What do I need to do to fix this?
Thanks,

Mike

*** Sent via Developersdex http://www.developersdex.com ***

Mar 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jon Maz | last post by:
Hi All, I am experimenting with URL Rewriting using the techniques outlined by Scott Mitchell in his article "URL Rewriting in ASP.NET"...
2
by: Jon Maz | last post by:
Hi All, I've been looking into options for URL Rewriting in .net, and to be honest, I haven't seen anything that's easier than the old Classic Asp solution with an ISAPI filter redirecting to an...
3
by: Michael Appelmans | last post by:
I'm trying to use a rule based URL rewrite application which uses HttpApplication.RewritePath. I keep getting "rsource not found" error in application when running on shared web host although the...
0
by: Lee | last post by:
Hi all ;) Preamble -------- I'm using URL rewriting to enforce a frames policy (yeah, I know frames are 'bad' :) - i.e. if a request comes in for a page which should be nested within a...
0
by: kellygreer1 | last post by:
Anyone else getting errors when using the URL Rewriting solution mentioned at the bottom of this article: http://www.codeproject.com/aspnet/urlrewriter.asp?df=100&forumid=4228&exp=0&select=876107 ...
3
by: Smokey Grindel | last post by:
I am using ASP.NET 2.0 and know about the static list in the web.config for URL rewriting, but my list is dynamic and I am running into some problems... 1) How do you get URL rewriting to work in...
0
by: Rohit111111 | last post by:
Hello All, I have used IHttpModule for Url Rewriting,But I am facing some problems in it. some times some images are not display,but after running my application for some time all is working fine...
2
by: Smokey Grindel | last post by:
In ASP.NET 2.0 there was a wierd bug with rewriting url's where they whould not be indexed by google and sometimes caused problems... has this been fixed in ASP.NET 2.0 SP1 / .NET 3.5? Anyone have...
0
by: Hamayun Khan | last post by:
Hi I m developing site for my client using asp.net 2.0. He asked me for URL rewriting. which I have done using Intelligencia.UrlRewriter.RewriterHttpModule rewriting module. I write the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.