How can I disable a button to prevent the user from multiple clicking
In the very last line of the button1_Click subroutine, add this line: VB.NET Button1.Enabled = False C# Button1.Enabled =false;
Do I have to compile code if I am changing the content of my aspx.cs file
Yes if you have used Codebehind=’my.aspx.cs’. Not if you used src=’my.aspx.cs’ in your page declaration.
What is the best way to output only time and not Date
Use DateTime as follows VB.NET Response.Write(DateTime.Now.ToString(‘hh:mm:ss’)) C# Response.Write(DateTime.Now.ToString(‘hh:mm:ss’));
Can I combine classic ASP and ASP.NET pages
No. ASP pages can run in the same site as ASP.NET pages, but you can’t mix in a page. Also ASP and ASP.NET won’t share their session.
How to convert TextBox value into a DateTime variable
VB.NET Dim dt As DateTime = DateTime.Parse(TextBox1.Text) C# DateTime dt = DateTime.Parse(TextBox1.Text); By default Date.Parse check the date as MDY format Refer DateTime.Parse for a specified Date Format.