Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2006, 06:53 AM
Authorized User
 
Join Date: Mar 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie question about dates

Hi all

I'm just looking at some c# code for a mate of mine and have something weird going on.

I've put three TextBox controls onto an ASPX page for nDay, nMonth and nYear. In the code behind page load I've then got
DateTime deliveryDate = DateTime.Now;
DateTime deliveryDateFuture = deliveryDate.AddDays(1);

nDay.Text=convert.toString(deliveryDateFuture.day) ;
nMonth.Text=convert.toString(deliveryDateFuture.mo nth);
nYear.Text=convert.toString(deliveryDateFuture.yea r);

On my local this works as I'd expect and I get the three textboxes filled in. When I put the ASPX to the live website it gives me 3 empty boxes. I've checked the ASPX timestamps to make sure its FTP'd correctly

As a test I put nYear.Text=convert.toString(deliveryDateFuture);
this also works on my local but gives an empty box on the live site.

Am I doing something stupid?

Regards
Graham
 
Old May 26th, 2006, 08:02 AM
Authorized User
 
Join Date: Mar 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Problem solved.

I needed to deploy the web.dll file.

d'oh

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question peterh Classic ASP Databases 3 January 17th, 2008 12:25 PM
Newbie Question sionfx VS.NET 2002/2003 0 November 16th, 2006 03:32 PM
newbie question pbb Ajax 0 September 26th, 2006 05:47 AM
Newbie Question - Sorry! KP Crystal Reports 1 June 13th, 2006 02:45 AM
Newbie question maccer88 Access 1 October 18th, 2003 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.