Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
17
Reply
How select Default today date in textbox control?
Narayana
Mar 14 2017 12:53 PM
403
Source code :
<asp:TextBox ID="txtfrmDate" runat="server" Height="34px" type="date"
class="form-control" ></asp:TextBox>
C# code :
txtfrmDate.text=convert.todatetime(DateTime.Now.ToString()).ToString("mm/dd/yyyy");
or
txtfrmDate.text=DateTime.Now.ToString("mm/dd/yyyy");
If i am running the website .It's not taking defaultly today date.
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
17
)
What is the Maximum size of Max Pool Size in iis web.config?
I have doubt about performance of web site.