Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to AUTO-FILL DATE into text box...
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00730010
Message ID:
00730026
Views:
19
Hi Dave,

In the Page_Load event, add the following code, substituting your textbox name.

VB.NET code
Me.MyTextbox.Text = System.DateTime.Now()
C# code
this.MyTextbox.Text = System.DateTime.Now();
>Can someone please help me auto-fill the date from the system date/time into a txt box? Thank you!
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform