Friday 7 February 2014

Set icone in URL

<link href="Image" rel="icon">
<Title>Home<Home>




Add caption















Count Visitor

Global asax:-The file is an optional file used to and handle application and session-level events and objects for an ASP.NET web site running on an IIS Web Server. The file contains ASP.NET program code, and is the .NET counterpart of the Global.asa file used for ASP.


<%@ Application Language="C#" %>
<script Runat="server">
void Application_start(Object Sender EventArgs)
{
Application["No of visitor visited]=0;
}
void Session_Start(Object Sender Event Args)
{
Application.Lock();
Application.["No of Visitor visited"]=(int)Application[ "No of Visitor visited"'+1;
Application.Unlock();

}

</script>

Default Page.

<b>
 No of visitor
</b>
<tr>
<td>
<asp:Label Id="lblCount" Runat="server" />
</td  >
</tr>


Page Load

lblCount.Text=Application[""No of Visitor visited"].To String();

How to get logged in User's Security Roles using Java Script in dynamic CRM 365.

 function GetloggedUser () {     var roles = Xrm.Utility.getGlobalContext().userSettings.roles;      if (roles === null) return false;      ...