CSS Tricks

The Container DIV tag must have the following:

<div  align="center">

</div>

Topmargin and left margin are not working in firefox.

style="margin:0" instead

 

 

 

Connect to Mysql from a Windows Application using ODBC

1. Download the mysql connector located here : http://dev.mysql.com/downloads/connector/net/6.0.html 

 2. Add a reference to the mysql.data.dll  (for some reason mysql.data is missing from the .net  reference tab). If that is the case for you downlaod the "Windows Binaries, no installer (ZIP)" version and click on the browse tab and locate the the mysql.data.dll manually.

3. Add the using MySql.Data.MySqlClient to your project.

4.  Create your connection MyConnection.ConnectionString = @"SERVER=" + dbHost.text + ";" + DATABASE=" + Database.text + ";" + "UID=" + dbUsernme.text + ";" + "PASSWORD=" + dbPassword.text + ";";

5. Then Test it.

Forms Authentication and Master Pages

The master page should be automatically removed form authentication what you really need to worry about are the images and the external css that are referenced in the master page. you will need to add the following in your web.config file right before the </configuration>

<location path="images">

<system.web>

<authorization>

<allow users="*"/>

</authorization>

</system.web>

</location>


<location path="css">

<system.web>

<authorization>

<allow users="*"/>

</authorization>

</system.web>

</location>

Read more

IIS 7 on Windows Server 2003

Every time I spend some time away from IIS and related technologies, I always forget that IIS 7.0 cannot be installed on  windows server 2003. However IIS7 is available on vista and windows 2008.
Also the IIS manager 7.0 does not seem to work on windows server 2003.

Create Auto-Reply With Outlook (not Out of Office)

Somebody came into my office one day and ask me this question: How do i create an auto-reply in microsoft outlook. I am like this is easy just go to tools -> out of office. then she said i do not want an out of office but an auto reply.  I want to auto-reply to the customer even if i am in the office.  The rest is GOOGLE.. To create and auto reply in outlook just go to rule and alert and create a rule that when you receive a message outlook reply with an email template.   That is all.