C# ASP.Net date calculation

Hi Experts, I am using a c# inline code aspx with visual web developer 2005 express edition.
I have a text box to enter a date formated as '23/07/2007' pressing the button validates the date.
I am trying to print out the date entered in the text box to a label.
Example: if I enter 30/08/2007 in the text box and press the button, I want 30/08/2007 to be printed in the label. One more thing, once the above is achieved I want to calculate the number of days since 01/01/1900
to a seperate label. I am awarding 500 points as this is holding up a project I am working on.
Code so far as follows:
<%@ Page Language="C#"%>
<script runat=server>
void Button_Click(Object sender, EventArgs e)
{
/// Response.Redirect( "ThankYou.aspx" );
/// DateTime x = DateTime.now;
/// string xStr = x.ToString("dd-MM-yyyy");
/// lblText1.Text = xStr;

Hi Experts, I have been doing a number of experiments and have produced the code as per listing below:
The code so far works, when you press a button after entering a date, it calculates the number of days since 1st Jan 1900. If you put two different dates i.e startdate & enddate I would like to be able to subtract the number of days in startdate from the number of days in enddate, then output the result to a label called "lblDays". Thanks in advance.

Just a quick little trick I learned recently. Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:
(CODE)
I suppose it just offends my sense of decency to put inline VBScript on a…

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …