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 convert plugin assembly (dll) into base 64 bytes using console application (C#).

 using System; using System.IO; using System.ServiceModel.Description; using Microsoft.Rest; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sd...