I recieve an error when building my vs2008 .net 3.5 solution
Error 1 An object reference is required for the non-static field, method, or property ‘System.Web.UI.Page.Request.get’
String _XSLTPath = Page.Request.Url.Scheme
+ "://"
+ Page.Request.Url.Authority
+ Page.Request.ApplicationPath.TrimEnd('/')
+ '/'
+ "webparts/weatherandtime/weather/xslt/RSSWeatherXSL.xsl";
The Page object seems to be higlighting in green which is not what i want. Can someone explain whats going on?
Thanks,
You try to access the non-static property
Page.Requestwithout an instance. You have to call it on an instance. Something likemyPage.Request.