Last post Aug 01, 2006 11:17 PM by Rattlerr
Jul 30, 2006 05:09 PM|Rattlerr|LINK
I'v now added a DetailsView to the Main.Master file...This is the information i have put into the Main.Master file...The Default.aspx Theme is Set to Enhanced,i checked it at the top of the page...The Master Page Inherits is the Default page...I currently
dont have any coding on the Default page...I'm using the Master Page To control the Home Page Setup..
<link runat="server" rel="stylesheet" href="~/BrowserSpecificCSS/IEMenu.css" type="text/css" id="IEMenuCSS" />
Scrolling Images of New members
Jul 30, 2006 10:17 PM|Russ Helfand|LINK
Rattlerr, I'm a bit confused. The kit comes with a page called Default.aspx that has a code behind file called Default.aspx.cs (or Default.aspx.vb). This code behind file sets up a class called _Default that derives from DynamicAdaptersPage which derived
from System.Web.UI.Page. You seem to be using _Default as the code behind class for a master page. In the code you posted you have:
in the @Master directive.
However, I believe that master pages must ultimately derive from System.Web.UI.MasterPage not System.Web.UI.Page. So I think there is a basic conflict in your code.
Jul 30, 2006 11:17 PM|Rattlerr|LINK
Here is the Code Behind File info for that Main.Master.cs ::
Jul 30, 2006 11:28 PM|Rattlerr|LINK
Here is the Default.cs I changed the .Page to .MasterPage and get a few errors now...lol
When i change the System.Web.UI.Page too .MasterPage i get the following Errors::
Error 4 'ASP.default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs
Error 5 'ASP.default_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs
Error 6 'ASP.default_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs
Jul 31, 2006 10:40 AM|Russ Helfand|LINK
OK. I understand now that you have modified the kit to make _Default derive from MasterPage rather than Page. That's good. The errors you are seeing are coming from deep within the framework. They have to do with the fact that earlier _Default was declared
to be derived from a different class. One way to get rid of those errors is to delete the temp files that the ASP.NET framework creates when it compiles the pages for a site.
You need to shut down Cassini if it is running (i.e., the web server normally used when you run from Visual Studio) and any sites from IIS that might be running on the box. Then you need to go to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
There, you'll see a bunch of folders that the framework has created. They need to be deleted. If you are told that some are locked and can't be deleted then you haven't shut down your web servers sufficiently.
After you get those files deleted the errors you show directly above in this post should go away.
Jul 31, 2006 02:50 PM|Rattlerr|LINK
I did what you said than did a Run without Debug I get the same errors as mentioned before along with this one..
Warning 2 The type '_Default' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_yz9bpjqd.0.cs' conflicts with the imported type '_Default' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_qnqweohg.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_yz9bpjqd.0.cs'. c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
Jul 31, 2006 02:57 PM|Rattlerr|LINK
Also noticed you guys have this on your Default,which I dont have that
This is what i have on my Default:
Jul 31, 2006 03:00 PM|Rattlerr|LINK
Aug 01, 2006 12:50 PM|Russ Helfand|LINK
I don't understand what you mean by the last question you posed (above). Can you restate it differently?
Also, I'm very surprised that deleting all of the framework's temp files didn't remove the problem with conflicts you noted earlier. Frankly, I don't know what to advise you at this point.
Aug 01, 2006 11:17 PM|Rattlerr|LINK
By right Clicking the .Master file i added Content (Default.apsx) on the Default page you have a Content Place Holder,top right corner you can Select Either:
A: Default to Masters Content
B: Create Custom Content...