<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
I have added only one(above) stylesheet in my page. I have buttons as menu and there CssClaas is set to mbt. If I remove CssClass="mbt" from a button tag, I will see that button totally with no style.
<asp:Button ID="mHome1" runat="server" Text="Home" CssClass="mbt"
PostBackUrl="~/Default.aspx"/>
But I have already removed mbt from Styles/Site.css. I have no mbt class in my whole project now, but still its effect is there. I have tried to rebuild project and restart visual-studio, but its effect is not going any way. How? Why?
Have you tried to clear your browser’s cache? Maybe the stylesheet file is cached.
With most browsers, you can force a reload of all files by clicking Shift-F5 or Ctrl-F5.
In my experience, I had the most cache-related problems when using Google Chrome.
In Internet Explorer, there is a useful option (in Internet Options -> General tab -> Browsing History -> Settings) where you can tell the browser to check for newer versions of files every time a page is loaded. This setting can be especially useful while developping a web application.
In firefox, you can find the settings in the Options dialog, under Advanced -> Network.