Friday, April 25, 2008

Web.config for VS2005 is rejected by IIS as Badly Formed

I created a very simple website using VS .NET 2005. When I am trying to bring up my web page, I keep getting the following error message as shown below.Server Error in '/APS_WebSetup' Application. ________________________________________Configuration ErrorDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...

Friday, April 18, 2008

PlaceHolder control in ASP .NET

PlaceHolder control acts as a container to store other web controls to a web page dynamically. It does not produce any output; its main function is used as a container for other controls. You can use the Controls.Controls collection to add, insert or remove controls from a PlaceHolder control.Here is an example of how to add a web control to PlaceHolder control.HTML<form id="Form1" method="post" runat="server"><asp:placeholder id="placeHolder" runat="server"> </asp:placeholder></form>CODE BEHINDDim newLbl...

Authentication and Authorization in ASP .NET

Authentication and authorization are two tightly-coupled concepts to form the core of security for .NET applications.Authentication is the process of determining and verifying the identity of users based on the users’ credentials. Authorization is the process of determining what level of access an authenticated identity should be granted to a given resource.Whenever a user logs on to a system, he/she will be authenticated first before he/she is authorized.AuthenticationThere are three types of authentication in ASP .NET:1. Form...

Wednesday, April 16, 2008

Differences between SqlDataAdapter and SqlDataReader

When I went for an interview last few weeks, the interviewers threw me some technical questions about .NET. Luckily I still can get some correct ideas on those questions. Here I will share with you one of the interview questions "What is the differences between SqlDataAdapter and SqlDataReader?"For SqlDataReader, you need to call the ExecuteReader method of the SqlCommand object.You can use SqlDataReader when your data access operations is mainly for fetching and displaying all the records in the database, which does not involve...

Saturday, April 12, 2008

Disable Right-Click for Your Website

NO RIGHT-CLICK for ImagesHave you ever tried so hard on your website to stop someone stolen your graphics as their own.Here is an extra step in protecting your graphics/images from being saved. But there is no foolproof method to stop someone from copy your images. If they really want something from your web site, they can find ways around it. But at least you can eliminate some proportion of visitors stealing images from your web site.It is very simple. Whenever someone right clicks his/her mouse, a message will popped up to...

Tuesday, April 1, 2008

Remove a Visual Studio from Source Control

To remove an item from source control, the first thing that you need to do is to select all items in your project and uncheck the Read-Only property. Click Apply then OK. Do these steps for both folder of your project (MyDocuments\Visual Studio Projects and wwwroot).In your Solution Directory, delete all the files with the extension .vssscc or .scc (includes all child folders in your solution directory). Next, right...
 

Get paid for your opinions! Click on the banner above to join Planet Pulse. Its totally free to sign up, and you can earn UNLIMITED. Find out more by visiting PLANET PULSE.
Sign up for PayPal and start accepting credit card payments instantly. http://www.emailcashpro.com
July Code Blog Copyright © 2010 Blogger Template Designed by Bie Blogger Template