Avatar billede tjgrindsted Nybegynder
07. januar 2007 - 16:51 Der er 2 kommentarer og
1 løsning

når jeg vil se side bliver den bare vist blank

Hej

Når jeg vil køre min kalender.aspx side får jeg bare vist en blanl side.

Spm.
- Hvorfor gør jeg det.

Ønske.
- Vil gerne have min kalender.aspx side til at køre sammen med en StyleSheet.css fil.

Kalender.aspx
...:KODE:...
<%@ Page Language="VB" AutoEventWireup="True" %>
<%@ Import Namespace="System.Web.UI.WebControls.Calendar" %>

<html>
<head>
<link rel="Stylesheet" type="text/css" href="StyleSheet.css" />
</head>
<body>
<form id="Form1" runat="server">
<asp:calendar
    id="calDate"
    cssclass="calendar"
    selectionmode="Day"
    runat="server"
    visible="False"
    nextprevformat="ShortMonth"
    dayheaderstyle-cssclass="DayHeader"
    daystyle-cssclass="Day"
    nextprevstyle-cssclass="NextPrev"
    othermonthdaystyle-cssclass="OtherMonthDay"
    selecteddaystyle-cssclass="SelectedDay"
    selectorstyle-cssclass="Selector"
    titlestyle-cssclass="Title"
    todaydaystyle-cssclass="TodayDay"
    weekenddaystyle-cssclass="WeekendDay">
</asp:calendar>
</form>
</body>
</html>


StyleSheet.css
...:KODE:...
.calendar {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #333333 !important;
    border-collapse: collapse !important;
    background-color: #06275C !important;
    width: 180px;
}

.calendar table td {
    background-color: #000066;
    border-color: #06275C;
    border-width: 1px;
    border-style: solid;
    color: #ffffff;
    font-weight: bold;
    font-size: 10px;
    padding: 0px;
}

.calendar table td a:link,
.calendar table td a:active,
.calendar table td a:visited {
    color: #ffcc00 !important;
    font-size: 9px !important;
    text-decoration: none;
}

.calendar table td a:hover {
    color: #ffffff !important;
    font-size: 9px !important;
    text-decoration: none;
}

.calendar td {
    font-family: Tahoma, Verdana;
    font-size: 9px;
    font-weight: bold;
    background-color: #06275C !important;
    padding: 2px;
}

.calendar .Selector {
   
}

.calendar .OtherMonthDay a {
    color: #999999 !important;
}

.calendar .SelectedDay a {
    font-weight: bold;
    color: #333333 !important;
}


.calendar .Title {
    background-color: #06275C;
    border-color: Black;
    border-width: 1px;
    border-style: solid;
}

.calendar .NextPrev a:link,
.calendar .NextPrev a:active,
.calendar .NextPrev a:visited  {
    color: #ffcc00;
    font-size: 9px;
    font-weight: bold;
    font-family: Tahoma, Verdana;
    text-decoration: none;
   
}

.calendar .NextPrev a:hover {
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    font-family: Tahoma, Verdana;
    text-decoration: none;
}

.calendar .Selector {
   
}


.calendar .DayHeader {
    text-align: center;
    background-color: #eeeeee !important;
}

.calendar .Day {
    text-align: center;
    background-color: #eeeeee !important;
}

.calendar .WeekendDay {
    text-align: center;
    background-color: #eeeeee !important;
}

.calendar .OtherMonthDay {
    text-align: center;
    background-color: #eeeeee !important;
}

.calendar .TodayDay {
    text-align: center;
    background-color: #eeeeee !important;
}

.calendar .SelectedDay {
    font-family: Tahoma, Verdana;
    font-size: 9px;
    text-align: center !important;
    background-color: #cccccc !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #333333 !important;
}

.calendar .Day a:link,
.calendar .Day a:active,
.calendar .Day a:visited,
.calendar .Today a:link,
.calendar .Today a:active,
.calendar .Today a:visited,
.calendar .WeekendDay a:link,
.calendar .WeekendDay a:active,
.calendar .WeekendDay a:visited {
    font-family: Verdana;
    font-size: 9px;
    color: #333333 !important;
    text-decoration: none;
}

.calendar .OtherMonthDay a:link,
.calendar .OtherMonthDay a:active,
.calendar .OtherMonthDay a:visited {
    font-family: Verdana;
    font-size: 9px;
    color: #999999 !important;
    text-decoration: none;
}



.calendar .Day a:hover,
.calendar .WeekendDay a:hover,
.calendar .OtherMonthDay a:hover {
    font-family: Verdana;
    font-size: 9px;
    color: #cc3300 !important;
    text-decoration: none;
}

.calendar .SelectedDay a:link,
.calendar .SelectedDay a:active,
.calendar .SelectedDay a:visited {
    font-family: Verdana;
    font-size: 9px;
    color: #333333 !important;
    text-decoration: none;
}

.calendar .SelectedDay a:hover {
    font-family: Verdana;
    font-size: 9px;
    color: #cc3300 !important;
    text-decoration: none;
}

Hi when i run my calendar.aspx site im just getting a blank site.

Why do it not show the calendar !?
Calendar.aspx
Avatar billede tjgrindsted Nybegynder
07. januar 2007 - 16:52 #1
hov glemte at slette mit engelsk Sorry.
Avatar billede thrytter Nybegynder
07. januar 2007 - 17:45 #2
Prøv at sætte Visible="True" !!
Avatar billede tjgrindsted Nybegynder
07. januar 2007 - 18:48 #3
he he samme svar fik jeg andet sted ;) så tror det er fejlen.

Ej det løste en hel del tak.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester