My studying notebook


Tip: Visual Studio 2005 Server Explorer Crash

9/15/2008 08:29:00 PM Posted by Unknown , 1 comment

Today. When I decide to use Visual Studio 2005. I find that I cannot open Server Explorer and View the Data Base in Visual Studio 2005 Toolbar View\Server Explorer. And it doesn’t fix the error in Toolbar Window\Reset Window Layout.

And What can i do? After my research, i use the Devenv Command Line Switches to solve this problem and run “devenv /setup” in Visual Studio 2005 Command Prompt.


9/15/2008 08:03:00 PM Posted by Unknown No comments





Tip:How append different master page by browser

9/05/2008 08:03:00 PM Posted by Unknown , No comments
We know that we can use master page to reate a consistent layout for the pages in your application. When you assign a master page to the cotent page, you can modify page directive to append different browser.

Usually we assing one master page to cotent page. Now we assign two master page to same content page. And modify MasterPageFile directive

For example:
<%@ Page Language="C#" Mozilla:MasterPageFile="~/FFMasterPage.master"
ie:MasterPageFile="~/IEMasterPage.master" AutoEventWireup="true"
CodeFile="DefaultContent.aspx.cs" Inherits="DefaultContent" %>