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

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 }

select all checkboxes in a table javascript

function checkAll(bx,dg) {                                         var tbl = document.getElementById(dg);                                         for (var index = 1; index < tbl.rows.length; index++) {                                             var cbs = tbl.rows[index].getElementsByTagName('input');                ...