| Topic : Security Programming in .NET |
|
|
|
|
||
|
Source : http://www.sitepoint.com
Activity:
5 comments
564 views
last activity : 07 06 2010 20:18:04 +0000
|
||
|
|
You are coding away on an ASP.NET page, and are trying to isolate a problem within the page. You have some existing html/controls/markup/in-line code that is being used on the page, and you want to temporarily comment it out while you fix the problem.
What do you think is the possible solution to this problem? The simple solution is the ASP.NET 2.0 Security. Besides secirity measures it supports a little known feature called “server-side comments” that you can use to completely disable code/controls/html in a page.
Now before proceeding, there has occured one common sense question in your mind that, what the difference is between using client-side HTML comments and server-side comments.?
The reason for it being that with client-side comments it is the browser which is ignoring the content within them. Code/controls within client-side comments will still be executed on the server and sent down to the browser. As such, if there is a server error caused within them it will block running the page.
Our basic aim here is deal with security and integrity of ASP.NET 2.0. Because of the presence of The Providr Model", security in ASP.NET 2.0 is much more simplistic, easy to configure, and quick to implement.
The model assumes the configuration of users and roles by automatically creating a database within SQL Server (or, if you choose to use Access, as an .MDB file within the Data folder of your application). Immediately, you're able to start to register and authenticate users against this newly created table.
You can also configure security by using the web adminstration tool in the following three stepped approach:
- Create a new Website within either Visual Studio 2005 beta or Visual Web Developer 2005 Express beta, and ensure that Website is turned into an application within IIS.
- Use the Web Site Administration Tool to enable and configure security for the newly created application.
- Use controls available in the suite of Login controls to build the UI with which our users will interact.
In addition to this there are specific login controls Login, LoginView, PasswordRecovery, LoginStatus, LoginName, CreateUserWizard, and ChangePassword controls, that allow quick, seamless integration between ASP.NET 2.0 security and your Web applications.

|
|
|
|
|
|
|
|
|
|
|
|
They should be punished.. yes .. but who will punish them.. big question isn't it.. let us stand up and go against them.. create an Egypt in India.. Will we do that?? No we will wait for world cup and than T20 to end and then something else... |
May be, but I don't think they would fit into corporate field. Corporate workplace is very different for what they have worked. So fitting into it is very difficult. |
Gone are the days when students used to sit in a class and a teacher used to take a class which consisted of nearly 50 people in it, irrespective of what students learned after each hour a new teacher would come and take a different subject.... |