ASP.NET Session States in SQL Server Mode

ASP.NET Session States in SQL Server Mode 


1. Run --> Cmd press enter
2. on DOS screen , type "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" press enter
3. type "aspnet_regsql.exe -S  Test_DB -U sa -P bajaj@123 -ssadd -sstype p" press enter

Then ASP State is in Database created.


Then Go to web application and define the session state mode in web.config

<system.web>
<sessionState mode="SQLServer" timeout="30" sqlConnectionString="Data Source=192.168.68.10; User ID=sa;Password=Test@123;" cookieless="false" />
</system.web>

Comments

Popular posts from this blog

How to find client's MAC Address in Asp.Net and C#.net

Use XML Data For Save in Database