rewriting 1.1 in asp.net 2.0 problems

M

Mike P

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
 
A

Adrian Parker

Try using ClientScript instead of Page and instead of just Response, try HttpContext.Current.Response....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top