473,803 Members | 3,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Some Questions about the asp:calendar

8 New Member
Hi

I have this code, and it works very well.

<form runat="server">
<asp:Calendar id=Calendar1 runat="server"
Height="160px" Width="224px"
NextMonthText = "<img src='images/arrowRight.gif' border=0>"
PrevMonthText = "<img src='images/arrowLeft.gif' border=0>"
FirstDayOfWeek= "Monday"

TitleStyle-BackColor="#ABA F96"
TitleStyle-Font-Bold="True"

DayNameFormat=" FirstTwoLetters "
DayHeaderStyle-Font-Bold="True"

TodayDayStyle-Font-Bold="True"
TodayDayStyle-BackColor="#D9D EBE"
TodayDayStyle-BorderWidth="1p x"
TodayDayStyle-BorderColor="#0 00000"

WeekendDayStyle-BackColor="#E2E C9B"

OtherMonthDaySt yle-ForeColor="#DDD DDD"
OtherMonthDaySt yle-BackColor="#FFF FFF"
/>
</form>
</asp:Content>

My Questions is:
- How can i make the DayNameFormat=" FirstTwoLetters " to Xx and not like now xx, i mean how to start with a big letter.
- The WeekendDayStyle-BackColor="#E2E C9B" style how can i make the same style on the SAT(sa) SUN(su) in the DayNameFormat.
- If i make a SelectionMode=" DayWeekMonth" and us SelectWeekText = "week" i can see the word "week" infront of a Week number if i make a mouseover it say "Select Week 3" or what ever the week number is, how can i changes the word "week" to the weeknumber!?

From this:
Week Mon Tue Wed Thu Fri Sat Sun
Week Week day number......... .............
Week Week day number......... .............
Week Week day number......... .............
Week Week day number......... .............
Week Week day number......... .............

To this:
Week Mon Tue Wed Thu Fri Sat Sun
01 Week day number......... .............
02 Week day number......... .............
03 Week day number......... .............
04 Week day number......... .............
05 Week day number......... .............

- And how can i remove the underline, under the day numbers !?
Jan 3 '07 #1
3 2208
kenobewan
4,871 Recognized Expert Specialist
Have you tried a CssClass for all of your desired style changes? As far as the Weeks go I think that you would use an incrementing variable with a counter instead.

Hope that this helps.
Jan 3 '07 #2
want2learn
8 New Member
do u know where there is an ex. or can u show me it, im a little new/green in asp.net/vb.
Jan 4 '07 #3
kenobewan
4,871 Recognized Expert Specialist
My suggestion is have a go and post the results. You might use a For, counter += 1 and a Variable = "week" + counter. Use the result in the datagrid column.

Good luck :).
Jan 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1327
by: Greg | last post by:
How do you get rid of the days of the month that are not in the month selected in a calendar control? For example, I have a calendar control that shows November, at the beginning and end of the calendar you can see the end of October and the first few days of December. All I want is November. Any ideas? Greg
1
1581
by: suresh | last post by:
Hi all, I have a little problem with an ASP Calendar Control within a frame. When I click the next month or previous month button it kicks the calendar out of the frame and shows it in a normal window. I looked on the control for a target property but could not find one. The calendar work great inside the frame except for the problem mentioned above. Any input on this issue would be greatly appreciated. Thanks,
2
1625
by: js | last post by:
Any way to modify an <asp:Calendar> tag with parameters on the fly? Seems I'm not allowed to use the <% =xxx %> substitution for parameters to the <asp:Calendar> tag. Do I have to do code behind procedures to intercept the creation of the Calendar to modify the parameters using DOM? Looking to generate multiple calendars, for different months, using a C# programming loop rather than in-line code in the .aspx file.
0
1088
by: Mark Rae | last post by:
Hi, Is there any way to show the SelectedDay as, say, a red circle? Something like this: http://www.visualasp.com/vcdl/monthview/monthview_multiple_monthviews.asp N.B. I realise that the above example is NOT using the <asp:Calendar> control - I'm merely using it as an example of the sort of formatting I'd like to use with an <asp:Calendar> control.
2
1072
by: boupierre | last post by:
Hello there! I use an asp:calendar in my page and I have an issue with it... when my page is loaded, if there is no date in the querystring, I set the calendar's selected date to Today and if there is a date in the querystring, I set the calendar to this date.
3
2919
by: WB | last post by:
Hi, Is it poosible to build an appointment planner on a webform using asp:Calendar control? I would like to display one month at a time and show all the appointments scheduled in every day (something like the Calendar in Microsoft Outlook)... Can this be done? Or do I have to build that from scratch?
1
2611
by: sloan | last post by:
Ok, maybe the asp:calendar doesn't do it. Anyone know of a codeproject (or similar) place that has a Web ~Server Control .. which displays a week, (not a month as the default asp:calendar does) and has a similar DayRender event? Thanks....
2
2667
by: Mark Rae | last post by:
Hi, Has anyone found a fix for the <asp:Calendar/ CSS bug whereby certain attributes (mainly colours) are not rendered correctly? E.g. <asp:Calendar ID="calTest" runat="server" OtherMonthDayStyle-CssClass="calOtherMonthDay" />
1
2842
by: phpmel | last post by:
Hi guys, I have an asp calendar control, text box, calendar icon, eraser icon all within an update panel. The calendar works fine, postbacks are handled without the flickering of the screen etc. my only problem is that i can not select today's date to display in the text box because by default, today's date is the selected date. <asp:UpdatePanel ID="UpdatePanel_start" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional"> ...
0
10548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.