Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Calendar backround

  Asked By: Craig    Date: Jun 22    Category: Asp.net    Views: 849
  

Does anyone know how to add a background image to a calendar day?

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Latoya Murray     Answered On: Jun 22

what you do is this.

You get a pair of scissors and cut out a picture of your mum. Then chop a hole
in the middle so you can see what day  of the month it is.
Then simply get some selotape and stick the edges down along the sides to the
calendar.

 
Answer #2    Answered By: Shobhana R.     Answered On: Jun 22

Probably with DayStyle CSS style. If that doesn't go, try OnDayRender Event and
attach an attribute to each Calendar day.

 
Answer #3    Answered By: Carl Woods     Answered On: Jun 22

I am sure this will look much better
though:
For those of you interested you add  a style to the day  you want in your
Calendar_Dayrender event like this:


Dim c as TableCell

C = e.Cell

c.Style.Add("BACKGROUND-IMAGE",
"url(http://localhost/examples/Calendar/Images/holiday_cal_test.gif
<http://localhost/examples/Calendar/Images/holiday_cal_test.gif> );")

Why one cant use a relative path i.e images/ holiday_cal_test.gif I cant
imagine, if anyone knows how please share!

 
Answer #4    Answered By: Adal Fischer     Answered On: Jun 22

if you are in code you can use C.CssClass = ds["styletitle"]

.... that way you could update the background  along with anyother cosmetics.
i.e. just alter the style.css and/or the database/xml which spits somestring

the overall client html's a bit easier to understand and less of it aswell ....
just a suggestion.

 
Didn't find what you were looking for? Find more on Calendar backround Or get search suggestion and latest updates.




Tagged: