Jaya Prakash

Jaya Prakash

  • 545
  • 2.3k
  • 65.1k

Date AutoPopulate

Feb 27 2023 9:18 AM

 

need to populate date textbox with today date how to populate date default in textbox i am unable to get it pls help me

I am calling it in page load but none working 

 TextBox12.Text = DateTime.Now.Date.ToShortDateString();
 TextBox13.Text = DateTime.Now.Date.ToShortDateString();

 this is source

<asp:TextBox ID="TextBox12" runat="server" TextMode="Date"></asp:TextBox>
            
<asp:TextBox ID="TextBox13" runat="server" TextMode="Date" ></asp:TextBox>
            

 


Answers (3)