Geeks With Blogs
Mayank Sharma
This is just a note to myself on what needs to be changed while working on projects that are on a UNC share. Problem 1: The first problem is the Trust level for Intranet Zone. Fix: Go to Control Panel\Administrative Tools\ and launch Microsoft .NET Framework 2.0 Configuration Tool. Click on Runtime Security Policy, then in the right pane, click Adjust ......

I wanted to give users an ability to send multiple attachments from the web application. I did not want anything fancy, just a few FileUpload controls on the page and then send the email. So I dropped five FileUpload controls on the web page and created a function to send email with multiple attachments. Here’s the code: public static void SendMail(string ......

This is just a note to myself on how to Encrypt and Decrypt App.Config (or Web.Config if ASP.NET) in a Windows Application. Encryption: 1. Rename App.Config to Web.Config 2. %windir%\Microsoft.NET\Fram... -pef "connectionStrings" <Full Path to Web.Config> 3. Succeeded! implies Encryption was successful 4. Rename Web.Config ......

This error took me a while to figure out. I was using SqlDataSource with stored procedures for SELECT and UPDATE commands. The SELECT worked fine. Then I added UPDATE command and while trying to update, I would get this error: "Procedure of function has too many arguments specified" Apparently, good guys at .NET decided it is necessary to send SELECT ......

I was moving a lot of databases from one SQL Server to another, and my applications were giving me errors saying "Login failed for <user>". The user was already in the database with appropriate rights to allowed objects in the database. I tried mapping the user to the database and that's when I got this message: "User Already Exists in the Current ......

Joe shared a nice list of page life cycle events, very useful when you are trying to figure out where to put what. Link: http://misfitgeek.com/blog/... ......

When passwords are set to expire after a certain number of days in Active Directory, the remote users suffer because they do not get a notification like the local users do that their password is going to expire. Eventually, it becomes too late for them to change their passwords and they get locked out. I found this out recently and did not believe that ......

1. Disable HTML Navigation bar. Tools -> Options -> Text Editor -> HTML -> Unckeck Navigation Bar option 2. Auto insert quotes when typing. Tools -> Options -> Text Editor -> HTML -> Format -> Check "Insert attribute value quotes when typing" 3. Format HTML on paste Tools -> Options -> Text Editor -> HTML -> Miscellaneous ......

Here Scott talks about the new feature Auto-Start included in .NET 4.0 and IIS 7. This can prove really helpful in avoiding the initial delay experienced by the first visitor of a web ASP.NET application. Here's the post ......

Copyright © bullpit | Powered by: GeeksWithBlogs.net