Skip to main content


Showing posts from July, 2012

Google Search

Custom Search

Live Search

Yahoo Search

Search the web Search this site

Styles missing in CalendarExtender

When you put an Ajax Calendar Extender inside of a GridView you will see the calendar without any styling on it meaning the calendar will show only the dates overlapping with other items on your form. Sometimes some dates might even be missing. See the sample appearances below.This happens because the style sheets are not loaded at the correct time due to a bug in toolkit, there are several ways to fix this. One is to add another calendar extender outside of the update panel and keep it hidden.Another is to disable partial rendering in the script manager. But this will slow down your site reducing the benefits gained from AJAX.<asp:ScriptManagerID="ScriptManager1"EnablePartialRendering="false"runat="server"></asp:ScriptManager> My chosen method is to add the styles manually to the style sheet. To move forward this way simply copy the following styles which are used by the calendar extender to your style sheet..ajax__calendar_container {padding:…

Reloading a Page using JavaScript

Ways to reload a page using Java script.When doing web development if you need to reload / refresh a page using Java script, you can use one of the following three methods.<scriptlanguage="javascript"type="text/javascript">function ReloadMethod1() {         window.location.href = window.location.href;     } function ReloadMethod2() {         window.location.reload();     } function ReloadMethod3() {         history.go(0);     } </script><inputtype="button"value="Reload"onclick="window.location.href=window.location.href"/><%--Calling Javascript function on button click.--%><inputtype="button"value="Reload"onclick="ReloadMethod2()"/><inputtype="button"value="Reload"onclick="window.location.reload()"/><!-- ASP Buttons --><asp:ButtonID="Button1"runat="server"Text="Reload"OnClientClick="window.location.…

Enabling Windows Aero

Recently suddenly my computer lost Windows Aero effects. After trying out many things I found that it is due to the Log Me In mirror driver.It seems Log Me In mirror driver is not compatible with Windows Aero effects so if you also lost Windows Aero and you have Log Me In installed on your machine to activate Aero back first try disabling “LogMeIn Mirror Driver” and restart your machine.This can be done by going to Device Manager by clicking,Start –> Control Panel –> Administrative Tools.Then double click on Computer Management. Now in the Computer Management window click on the Device Manager.Another way to reach the Device Manager is by pressing the Windows key and the Pause key in your keyboard simultaneously.Now expand the Display Adapters and right click on LogMeIn Mirror Driver and click on Disable.This will disable the Log Me In mirror driver enabling Windows Aero after you restart your machine.If you cannot see Aero effects after the restart search for the word Aero in y…

Creating Database Table and Moving Data

When the need comes to port tables from one server / database to another server / database there is an easy way than creating the tables manually and importing data into table. By using the following query you can import the table structure and the data of the required table.
SELECT*INTO [DestinationServerName\SQLServerInstanceName].[DestinationDatabaseName].[OwnerName].[DestinationTableName]FROM [SourceServerName\SQLServerInstanceName].[SourceDatabaseName].[OwnerName].[SourceTableName] Using the above method you can transfer tables between different databases, Server instances or different database servers. Consider the following example in which I am transferring the Customers table from Northwind database to my Test database. SELECT*INTO [Test].[dbo].[Customers]FROM [Northwind].[dbo].[Customers] Here SELECT statement will behave the same way as in a normal SELECT * FROM TableName statement meaning you can use all the techniques used in SELECT statements to filter the data needed to…