Tuesday, November 08, 2005 8:34:41 PM UTC :: Filed Under ASP.NET

Free ASP.NET hosting for Christians… Does it get any better than this?

http://www.christianasp.net/Hosting.aspx

Tuesday, November 08, 2005 5:40:00 PM UTC :: Filed Under ASP.NET

Although this type of toolbar has been around for a long time for the FireFox browser, the IE Team at Microsoft has finally gotten around to creating a Developer Toolbar add-in for IE.

Wednesday, November 02, 2005 8:53:15 PM UTC :: Filed Under ASP.NET

Sample comparing two dates:

Dim t1 As String = DateTime.Parse("3:30 PM").ToString("t")
Dim t2 As String = DateTime.Now.ToString("t")
If DateTime.Compare(DateTime.Parse(t1), DateTime.Parse(t2)) < 0 Then 
     Response.Write(t1.ToString() & " is < than " & t2.ToString())
Else 
     Response.Write(t1.ToString() & " is > than " & t2.ToString())
End If

Sample comparing two moments in time:

Dim adate As DateTime = DateTime.Parse("06/24/2003") 
Dim bdate As DateTime = DateTime.Parse("06/28/2003")
Dim ts As New TimeSpan(bdate.Ticks - adate.Ticks)
Response.Write(ts.TotalDays & "<br>")
Response.Write(ts.TotalHours & ":" & ts.TotalMinutes & _
        ":" & ts.TotalSeconds & ":" & ts.TotalMilliseconds) 
Sunday, October 30, 2005 5:01:10 AM UTC :: Filed Under ASP.NET

When using a GridView in ASP.NET 2.0, note that you must set HtmlEncode = False in addition to setting the DataFormatString or else the formatting will not work:

image0011.png

Sunday, October 30, 2005 3:15:06 AM UTC :: Filed Under ASP.NET

Because of the cost and portability, I had a tendency to use Microsoft Access databases as the back-end for many of my web sites.  Microsoft recently released Visual Studio 2005 which includes SQL Express 2005.  SQL Express is designed to be used in-place of Access for low volume web sites.

With this in-mind, my first thought was, “How to I upsize my Access 2000 databases to SQL Express 2005?”  It’s surprisingly easy.

How to Upsize an Access 2000 Database to an SQL Express 2005 Database

1. Open the Access database you wish to up-size.
 
2. Select Tools > Database Utilities > Upsizing Wizard



3. Select Create new database and then Next >
 
4. This is probably the hardest part.  The instance of your SQL Express database won’t show-up in the database dropdown list.   For the name of your SQL Server, enter MACHINENAME\SQLExpress or .\SQLExpress.  The former worked for me:



5. Make sure you name the database, click Next >, and the rest is the same as it’s always been.

If you find that Access can’t connect to the SQL Express database, this FAQ might be helpful:

FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc(basically anything that is not using .Net 2.0 or the new SQL Native Client))

You’ll also likely want to bookmark the Microsoft SQL Express Blog to stay informed.

Friday, October 28, 2005 7:49:44 PM UTC :: Filed Under ASP.NET

I recently spent a considerable amount of time converting a client site from not following any particular standard to using the XHTML 1.0 Transitional standard.  This was a difficult task since the site was created with VisualStudio.NET 2003 which doesn’t care much about standards!  As a result, I spent most of my time designing pages in Macromedia Dreamweaver MX and doing the code in VS.NET (Can you say, “pain-in-the-butt”?)

In converting this site to XHTML, I learned a lot about CSS and the benefits of separating HTML from styles… so much that I have no real desire to go back to the old sloppy way of coding.
With the release of VisualStudio.NET 2005, one of the great features of this new tool is that it creates XHTML 1.0 Transitional code by default!  This doesn’t necessarily mean that I can through Dreamweaver out the window, but at least I can open my HTML and ASPX pages up in VS.NET and know it isn’t going to re-write and mangle my code.

The following article from the Microsoft ASP.NET Developer Center is very helpful in explaining the new features of VS.NET 2005 in regards to web standards:

Building ASP.NET 2.0 Web Sites Using Web Standards

If XHTML Transitional isn't good enough and XHTML Strinct is preferred... no problem!  Add the following in your project's web.config file:

Note that in addition to changing the runtime behavior to be strict, you can also then change the validation drop-down in the VS toolbar to validate html/javascript against XHTML strict as well.
Navigation
On this page....
Search
Archives
<November 2005>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Categories
Contact me
Send mail to the author(s) Contact Todd M. Taylor