What permissions do ASP.NET applications posses by default
By default ASP.NET Web applications run as ASP.NET user. This user has limited permissions equivalent to the User Group.
Why do I get the Error message ‘Operation must use an updateable query’?
If you’re getting an error when Inserting or Updating an MS Access Database (’Operation must use an updateable query’), that’s because the ASPNet user account needs the correct permissions on the directory where the database resides To fix this in Windows 2K: (Go into Accessories/Computer Management/Local Users & Groups/users You will see that there’s an ASPNet user. ) Right click on the directory where your database is – choose properties – Then the security tab – then click on permissions. Add the ASPNet user to the shared section Then, make sure it has ’Change’ rights – Click Apply and you should be working fine then.
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’));