Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: chemistry program Pin
Keith Barrow14-Jul-11 3:03
professionalKeith Barrow14-Jul-11 3:03 
GeneralRe: chemistry program Pin
Pete O'Hanlon14-Jul-11 3:11
mvePete O'Hanlon14-Jul-11 3:11 
Questiononline shopping card Pin
future383921-Aug-10 4:19
future383921-Aug-10 4:19 
AnswerRe: online shopping card Pin
Blue_Boy21-Aug-10 11:54
Blue_Boy21-Aug-10 11:54 
AnswerRe: online shopping card Pin
Not Active21-Aug-10 12:09
mentorNot Active21-Aug-10 12:09 
GeneralRe: online shopping card Pin
Luc Pattyn21-Aug-10 12:24
sitebuilderLuc Pattyn21-Aug-10 12:24 
AnswerRe: online shopping card Pin
Yusuf21-Aug-10 21:02
Yusuf21-Aug-10 21:02 
QuestionCSS in ASP.net Pin
future383921-Aug-10 1:43
future383921-Aug-10 1:43 
Hello,
I have the following code in my Site.css file
/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error
{
    color: #ff0000;
}

.field-validation-valid
{
    display: none;
}

.input-validation-error
{
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors
{
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid
{
    display: none;
}


BODY { font-family: Cambria, Georgia, "Times New Roman"; margin: 0; }
DIV#header DIV.title, DIV.item H3, DIV.item H4, DIV.pager A {
font: bold 1em "Arial Narrow", "Franklin Gothic Medium", Arial;
}
DIV#header { background-color: #444; border-bottom: 2px solid #111; color: White; }
DIV#header DIV.title { font-size: 2em; padding: .6em; }
DIV#content { border-left: 2px solid gray; margin-left: 9em; padding: 1em; }
DIV#categories { float: left; width: 8em; padding: .3em; }
DIV.item { border-top: 1px dotted gray; padding-top: .7em; margin-bottom: .7em; }
DIV.item:first-child { border-top:none; padding-top: 0; }
DIV.item H3 { font-size: 1.3em; margin: 0 0 .25em 0; }
DIV.item H4 { font-size: 1.1em; margin:.4em 0 0 0; }
DIV.pager { text-align:right; border-top: 2px solid silver;
padding: .5em 0 0 0; margin-top: 1em; }
DIV.pager A { font-size: 1.1em; color: #666; text-decoration: none;
padding: 0 .4em 0 .4em; }
DIV.pager A:hover { background-color: Silver; }
DIV.pager A.selected { background-color: #353535; color: White; }



then I try to load it in Site.master file:
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
    <link rel="Stylesheet" href="~/Content/Site.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id = "header">
        <div class = "Tittle" align="center" >SportsStore</div>
    </div>
    <div id = "Categories" > 
        Will put something here.
    </div>
    <div id="Content">
        <asp:ContentPlaceHolder ID="MainContent" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>


the problem is after I run the program, nothing applied.
could you please tell me what is the problem.
AnswerRe: CSS in ASP.net Pin
R. Giskard Reventlov21-Aug-10 5:24
R. Giskard Reventlov21-Aug-10 5:24 
AnswerRe: CSS in ASP.net Pin
koolprasad200322-Aug-10 1:30
professionalkoolprasad200322-Aug-10 1:30 
QuestionControl Like Code project Pin
Hiren solanki20-Aug-10 19:08
Hiren solanki20-Aug-10 19:08 
AnswerRe: Control Like Code project Pin
Ankur\m/21-Aug-10 0:19
professionalAnkur\m/21-Aug-10 0:19 
GeneralRe: Control Like Code project Pin
Hiren solanki24-Aug-10 19:27
Hiren solanki24-Aug-10 19:27 
GeneralRe: Control Like Code project Pin
Ankur\m/24-Aug-10 23:51
professionalAnkur\m/24-Aug-10 23:51 
AnswerRe: Control Like Code project Pin
ScottM122-Aug-10 22:08
ScottM122-Aug-10 22:08 
GeneralRe: Control Like Code project Pin
Hiren solanki29-Aug-10 20:11
Hiren solanki29-Aug-10 20:11 
QuestionBackground worker thread to process many request asynchronously Pin
Hamed Musavi20-Aug-10 6:10
Hamed Musavi20-Aug-10 6:10 
AnswerRe: Background worker thread to process many request asynchronously Pin
Ennis Ray Lynch, Jr.20-Aug-10 6:16
Ennis Ray Lynch, Jr.20-Aug-10 6:16 
GeneralRe: Background worker thread to process many request asynchronously Pin
Hamed Musavi20-Aug-10 6:28
Hamed Musavi20-Aug-10 6:28 
GeneralRe: Background worker thread to process many request asynchronously Pin
ely_bob23-Aug-10 2:30
professionalely_bob23-Aug-10 2:30 
AnswerRe: Background worker thread to process many request asynchronously PinPopular
T M Gray20-Aug-10 6:26
T M Gray20-Aug-10 6:26 
GeneralRe: Background worker thread to process many request asynchronously Pin
Hamed Musavi20-Aug-10 6:30
Hamed Musavi20-Aug-10 6:30 
AnswerCreate a Windows Service - FileSystemWatcher Pin
David Mujica20-Aug-10 6:32
David Mujica20-Aug-10 6:32 
GeneralRe: Create a Windows Service - FileSystemWatcher Pin
AllenRogerMarshall24-Aug-10 12:21
professionalAllenRogerMarshall24-Aug-10 12:21 
AnswerRe: Background worker thread to process many request asynchronously Pin
si2480323-Aug-10 0:09
si2480323-Aug-10 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.