If the AJAX CalendarExtender control shows up without any style information or in the wrong places, the simplest solution is to copy the original CSS for the Calendar’s default style (located at AjaxControlToolkit\Calendar\Calendar.css into your application’s CSS file. Also make sure the CssClass property is not defined in your CalendarExtender. The actual content of the default Calendar style is below:
.ajax__calendar_container {padding:4px;position:absolute;cursor:default;width:170px;
font-size:11px;text-align:center;font-family:tahoma,verdana,helvetica;}
.ajax__calendar_body {height:139px;width:170px;position:relative;overflow:hidden;
margin:auto;}
.ajax__calendar_days, .ajax__calendar_months, .ajax__calendar_years {top:0px;left:0px;
height:139px;width:170px;position:absolute;text-align:center;margin:auto;}
.ajax__calendar_container TABLE {font-size:11px;}
.ajax__calendar_header {height:20px;width:100%;}
.ajax__calendar_prev {cursor:pointer;width:15px;height:15px;float:left;
background-repeat:no-repeat;background-position:50% 50%;
background-image:url(< %=WebResource("AjaxControlToolkit.Calendar.arrow-left.gif")%>);}
.ajax__calendar_next {cursor:pointer;width:15px;height:15px;float:right;
background-repeat:no-repeat;background-position:50% 50%;
background-image:url(< %=WebResource("AjaxControlToolkit.Calendar.arrow-right.gif")%>);}
.ajax__calendar_title {cursor:pointer;font-weight:bold;}
.ajax__calendar_footer {height:15px;}
.ajax__calendar_today {cursor:pointer;padding-top:3px;}
.ajax__calendar_dayname {height:17px;width:17px;text-align:right;padding:0 2px;}
.ajax__calendar_day {height:17px;width:18px;text-align:right;padding:0 2px;cursor:pointer;}
.ajax__calendar_month {height:44px;width:40px;text-align:center;cursor:pointer;overflow:hidden;}
.ajax__calendar_year {height:44px;width:40px;text-align:center;cursor:pointer;overflow:hidden;}
.ajax__calendar .ajax__calendar_container {border:1px solid #646464;background-color:#ffffff;
color:#000000;}
.ajax__calendar .ajax__calendar_footer {border-top:1px solid #f5f5f5;}
.ajax__calendar .ajax__calendar_dayname {border-bottom:1px solid #f5f5f5;}
.ajax__calendar .ajax__calendar_day {border:1px solid #ffffff;}
.ajax__calendar .ajax__calendar_month {border:1px solid #ffffff;}
.ajax__calendar .ajax__calendar_year {border:1px solid #ffffff;}
.ajax__calendar .ajax__calendar_active .ajax__calendar_day {background-color:#edf9ff;
border-color:#0066cc;color:#0066cc;}
.ajax__calendar .ajax__calendar_active .ajax__calendar_month {background-color:#edf9ff;
border-color:#0066cc;color:#0066cc;}
.ajax__calendar .ajax__calendar_active .ajax__calendar_year {background-color:#edf9ff;
border-color:#0066cc;color:#0066cc;}
.ajax__calendar .ajax__calendar_other .ajax__calendar_day {background-color:#ffffff;
border-color:#ffffff;color:#646464;}
.ajax__calendar .ajax__calendar_other .ajax__calendar_year {background-color:#ffffff;
border-color:#ffffff;color:#646464;}
.ajax__calendar .ajax__calendar_hover .ajax__calendar_day {background-color:#edf9ff;
border-color:#daf2fc;color:#0066cc;}
.ajax__calendar .ajax__calendar_hover .ajax__calendar_month {background-color:#edf9ff;
border-color:#daf2fc;color:#0066cc;}
.ajax__calendar .ajax__calendar_hover .ajax__calendar_year {background-color:#edf9ff;
border-color:#daf2fc;color:#0066cc;}
.ajax__calendar .ajax__calendar_hover .ajax__calendar_title {color:#0066cc;}
.ajax__calendar .ajax__calendar_hover .ajax__calendar_today {color:#0066cc;}
#
By Mikhail Esteves | June 23rd, 2009 in
C#/.NET,
Tips |
No Comments
More often than not, designers have rightfully been accused of retreating into their cocoons of ignorance as soon as their work of creating a web design is finished, leaving the dirty and more hands-on work of putting it up on the web to developers. This apathy is prevalent not only in the web-building industry, but also in software and game engineering.
The hard truth is that the buck of development should stop with designers. For optimum efficiency, designers should not only be concerned with painting the bigger picture but also building it! In this article, I’d like to share with you some reasons why designers should learn how to code.
Read more
By Mikhail Esteves | June 13th, 2009 in
General |
No Comments
My dad made a remark once that if you want to be good in sales, you can’t just believe that the glass is half full. You have to say with a straight face that a half-full glass is better than a completely full glass.
Anyhow, my shop has generally good relationships between the technical team and the sales team. There’s one thing that drives me nuts though: when we discuss priority and they try to negotiate with me on my estimates.
Read more
By Mikhail Esteves | June 8th, 2009 in
General |
No Comments
There are two ways to get LINQ to SQL results into a DataTable, as explained here.
I use Sample II:
public DataTable ToDataTable(System.Data.Linq.DataContext ctx, object query)
{
if (query == null)
{
throw new ArgumentNullException("query");
}
IDbCommand cmd = ctx.GetCommand(query as IQueryable);
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = (SqlCommand)cmd;
DataTable dt = new DataTable("sd");
try
{
cmd.Connection.Open();
adapter.FillSchema(dt, SchemaType.Source);
adapter.Fill(dt);
}
finally
{
cmd.Connection.Close();
}
return dt;
}
//
By Mikhail Esteves | June 2nd, 2009 in
C#/.NET,
Tips | tags:
c#,
linq,
linq to sql,
sql,
Tips |
No Comments
When installing an IIS application on Vista, you may receive the following error:
Error 1606. Could not access network location %SystemDrive%\inetpub\wwwroot\
To correct this error, you will need to make a quick change in the registry:
- Make a backup of your registry.
- Start | Run | regedit
- Browse to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp using regedit
- Change the key
PathWWWRoot to read “@C:\inetpub\wwwroot@” (your default website location in IIS) instead of %SystemDrive%\inetpub\wwwroot
By Mikhail Esteves | April 2nd, 2009 in
AJAX,
Tips,
Windows |
No Comments
One of the basic pillars of the study of human psychology is the analysis of the subconscious and conscious mind. Sigmund Freud was one of the first to clearly identify and characterize the ‘areas’ where our psychic energy flows. During the first part of his notable life he stated that these were the ‘subconscious’, ‘preconscious’ and ‘conscious’ mind.
If we wanted to get an idea of how each of them is involved in our ideas, feelings, thoughts, decisions and motivation (which are key in our daily and professional lives), we should picture ourselves as an iceberg. The tip of the iceberg, the only part we see from the surface, is the conscious mind. It’s logical, organized, and we can control it, but still small. The vast and voluminous underlying mass is the unconscious mind. It’s disorganized, illogical, irrational, but defining in how we act.
Modern psychology has attempted to classify how good we are at a certain skill by observing how deep it perforates that iceberg. It thus describes four stages of competence an individual can achieve. In this article I’ll try to apply this simple scheme to the skill we practice everyday: programming.
Read more
By Mikhail Esteves | March 27th, 2009 in
General |
No Comments
I use DreamHost to store and manage all my Subversion repositories. When trying to commit a while back, I got this strange error:
svn: Commit failed (details follow):
svn: MKCOL of '.../images': 405 Method Not Allowed
Searching around, I managed to find a couple of reasons this could occur — wrong charset or a connectivity problem (proxy discarding the MKCOL command). I’m not behind a proxy so I tried passing a charset parameter but that didn’t really help.
What finally helped was deleting the problematic “images” directory in the repository and re-commiting the directory. I use TortoiseSVN so it was as simple as using the Repo-Browser, right-clicking on the problematic directory and deleting it. The commit went through just fine after this.
By Mikhail Esteves | March 24th, 2009 in
LAMP,
Tips | tags:
error,
source control,
subversion,
svn,
Tips,
tortoisesvn |
1 Comment
Getting Spotlight to skip indexing particular folders in a fixed drive is as simple as dragging the folders into Spotlight’s Privacy Settings tab. However, in order to get Spotlight to stop indexing external drives (USB drives, external hard disks, etc), the Privacy Settings tab only disables it temporarily – when you remount the volume, indexing begins again.
To avoid Spotlight from indexing an entire volume, create an empty file named .metadata_never_index in the root folder of the volume. If your volume is called MYDATA, for example, open up Terminal and type:
$ touch /Volumes/MYDATA/.metadata_never_index
Spotlight should now skip indexing this volume – as long as this file exists.
By Mikhail Esteves | March 19th, 2009 in
OS X,
Tips,
Windows | tags:
10.5.6,
indexing,
leopard,
mac,
OS X,
spotlight,
Tips |
No Comments