Skip to main content

Asp.Net Security

  • Authentication – it is the process of ensuring the user’s identity and authenticity. ASP.Net allows four types of authentication system:
    1. Windows Authentication
    2. Forms Authentication
    3. Passport Authentication
    4. Custom Authentication
  • Authorization – it is the process of defining and allotting specific roles to specific users.
  • Confidentiality – it involves encrypting the channel between the client’s browser and the web server.
  • Integrity – it involves maintaining the integrity of data. For example, implementing digital signature.

Comments

Popular posts from this blog

Types Of Join In SQL

Sql joins are used to fetch/retrieve data from two or more data tables, based on a join condition. A join condition is a relationship among some columns in the data tables that take part in Sql join. Basically data tables are related to each other with keys. We use these keys relationship in sql joins. Inner Join Outer Join Cross Join Cross Join

Change Key Dynamically in Web.Config

System.Xml; private void SetConfigSettings() { string path = Server.MapPath("Web.config"); string newConnectionString = @"Server=local;Database="+txtDatabaseName.Text+";Trusted_Connection=true"; XmlDocument xDoc = new XmlDocument(); xDoc.Load(path); XmlNodeList nodeList = xDoc.GetElementsByTagName("appSettings"); XmlNodeList nodeAppSettings = nodeList[0].ChildNodes; XmlAttributeCollection xmlAttCollection = nodeAppSettings[0].Attributes; xmlAttCollection[0].InnerXml = txtKey.Text; // for key attribute xmlAttCollection[1].InnerXml = newConnectionString; // for value attribute xDoc.Save(path); // saves the web.config file }