List of countries for HTML Forms Part.1

Here is a select containing the list of countries for HTML forms:   <select> <option value=”Afghanistan”>Afghanistan</option> <option value=”Albania”>Albania</option> <option value=”Algeria”>Algeria</option> <option value=”American Samoa”>American Samoa</option> <option value=”Andorra”>Andorra</option> <option value=”Angola”>Angola</option> <option value=”Anguilla”>Anguilla</option> <option value=”Antartica”>Antarctica</option> <option value=”Antigua and Barbuda”>Antigua and Barbuda</option> <option value=”Argentina”>Argentina</option> <option… Continue Reading

How to access the claims attributes in .net applications (SharePoint or ASP.NET)

Check also Where is Microsoft.Identitymodel.Claims.dll public string text = “”; protected void Page_Load(object sender, EventArgs e) { text += “<table>” + “<tr><th>ClaimType</th><th>ValueType</th><th>Value</th></tr>”; foreach(var claim in ((Microsoft.IdentityModel.Claims.ClaimsIdentity)(System.Web.HttpContext.Current.User.Identity)).Claims) { text += “<tr><td>” + claim.ClaimType + “</td><td>” + claim.ValueType + “</td><td>” + claim.Value +… Continue Reading

Where is Microsoft.Identitymodel.Claims.dll ?

If you are trying to develop something with Claims (getting LDAP attributes in a ADFS environment) in SharePoint 2013 you will probably require to add a reference to Microsoft.IdentityModel.dll ; This should be available in Add Reference but most of… Continue Reading