<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ASP.NET &gt; Metasys Software Pvt Ltd.</title>
	<atom:link href="https://www.metasyssoftware.com/tag/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.metasyssoftware.com</link>
	<description>Unique People, Unique Solutions</description>
	<lastBuildDate>Fri, 07 Jun 2024 10:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.metasyssoftware.com/wp-content/uploads/2023/10/metasys-svg-.png</url>
	<title>ASP.NET &gt; Metasys Software Pvt Ltd.</title>
	<link>https://www.metasyssoftware.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Keep an Application Logged in to Avoid Session Timeout and Data Loss (Asp.net)?</title>
		<link>https://www.metasyssoftware.com/microsoft-technologies/how-to-keep-an-application-logged-in-to-avoid-session-timeout-and-data-loss-asp-net/</link>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Thu, 06 Jul 2023 05:56:43 +0000</pubDate>
				<category><![CDATA[Microsoft Technologies]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.Net developers]]></category>
		<category><![CDATA[ASP.Net Development Company in India]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=6256</guid>

					<description><![CDATA[<p>Session Management is an important aspect to be taken care of while writing code. Several factors play a role in [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/microsoft-technologies/how-to-keep-an-application-logged-in-to-avoid-session-timeout-and-data-loss-asp-net/">How to Keep an Application Logged in to Avoid Session Timeout and Data Loss (Asp.net)?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<div id="pl-6256"  class="panel-layout" ><div id="pg-6256-0"  class="panel-grid panel-no-style" ><div id="pgc-6256-0-0"  class="panel-grid-cell" ><div id="panel-6256-0-0-0" class="so-panel widget widget_sow-editor panel-first-child panel-last-child" data-index="0" ><div
			
			class="so-widget-sow-editor so-widget-sow-editor-base"
			
		>
<div class="siteorigin-widget-tinymce textwidget">
	<p>Session Management is an important aspect to be taken care of while writing code. Several factors play a role in deciding your strategy and it is never one size fits all. It is important to understand the context and specific requirements of a business to determine the appropriate session duration.</p>
<p>In this context, the application was used as an internal application to gather data on all the work being completed by the construction crew. This was reviewed by the managers and supervisors and thereafter billers generated the invoices.</p>
<p>It was important here to allow for long session durations. The users wanted the ability to remain logged in even when the application might be idle for a long time, and with no data loss. This would not be recommended in the context of personal banking, where security and avoidance of session hacking are of far greater importance.</p>
<p>This article explains how you can maintain a session in ASP.Net and avoid getting logged out, even when the application is idle for a long time. This method will also help in preventing data loss.</p>
<p>We used Handler to maintain the session in ASP.Net.</p>
<p><h2><strong>Why Handler?</strong></h2>
</p>
<ul>
<li>Handler makes a simple post-back call to the server to keep the session alive.</li>
<li>In Handler, a session variable is accessed only if it is inherited by the interface IRequiresSessionState. The handler receives the request from the aspx page and, in turn, sends a response.</li>
</ul>
<p><strong>Implementation of Handler in our application using Asp.net and jQuery:</strong></p>
<p>We employ Handler in our application for user data maintenance and to prevent session time out.</p>
<p><strong>How Handler Works:</strong></p>
<ul>
<li>Create a handler by right-clicking on the website and adding an item by selecting a generic handler.  Eg:(KeepActive.ashx) - extension of handler is ASHX.</li>
<li>Make a call to the handler using jQuery function.</li>
</ul>
<p><strong>Code snippet:</strong></p>
<p><%@ WebHandler Language="C#" Class="KeepActive" %><br />
using System;<br />
using System.Web;<br />
using System.Web.SessionState;<br />
public class KeepActive : IHttpHandler, IRequiresSessionState<br />
{<br />
    public void ProcessRequest(HttpContext context)<br />
    {<br />
        try<br />
        {<br />
            context.Session["Active"] = DateTime.Now;<br />
        }<br />
        catch { }<br />
    }<br />
  }<br />
    public bool IsReusable<br />
    {<br />
        get<br />
        {<br />
            return false;<br />
        }<br />
    }<br />
}
</p>
<ul>
<li>After the handler is created, create a jQuery function named “setinterval”, which runs at an    interval to update session.</li>
<li>Please find the below jQuery code, which is called on load of the page and it has a function named “setinterval”, which get triggered after every five minutes:</li>
</ul>
<p><strong>Code snippet:</strong></p>
<p>window.onload = function () {<br />
var idleInterval = setInterval(timerIncrement, 300000); // for 5 minutes<br />
}</p>
<ul>
<li>The above function calls another function named “timerIncrement”, which triggers and calls handler named “KeepActive” after every five minutes. It is necessary to update the session and keep it alive</li>
</ul>
<p><strong>Code snippet:</strong></p>
<p>function timerIncrement() {<br />
idleTime = idleTime + 1;<br />
if (idleTime &gt; 1) { // Greater than 10 minutes<br />
if (typeof GetHiddenForemanReportID == 'function') {<br />
var foremanReportID = GetHiddenForemanReportID();<br />
jq.post("/KeepActive.ashx?foremanReportID=" + foremanReportID, null,     function () {<br />
});</p>
<p>MetaSys Software’s developers have successfully delivered applications using <a href="https://www.metasyssoftware.com/case-study-dotnet">ASP.Net Core</a> and .Net &amp; ASP.Net Framework. For more details, see <a href="https://www.metasyssoftware.com/dot-net">https://www.metasyssoftware.com/dot-net</a>. <a href="https://www.metasyssoftware.com/contact/">Contact us</a> with your project requirements now!</p>
</div>
</div></div></div></div></div>The post <a href="https://www.metasyssoftware.com/microsoft-technologies/how-to-keep-an-application-logged-in-to-avoid-session-timeout-and-data-loss-asp-net/">How to Keep an Application Logged in to Avoid Session Timeout and Data Loss (Asp.net)?</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A Case Study – Building a Dashboard using Google charts in ASP.NET</title>
		<link>https://www.metasyssoftware.com/dot-net/a-case-study-building-a-dashboard-using-google-charts-in-asp-net/</link>
					<comments>https://www.metasyssoftware.com/dot-net/a-case-study-building-a-dashboard-using-google-charts-in-asp-net/#respond</comments>
		
		<dc:creator><![CDATA[meta_prasad]]></dc:creator>
		<pubDate>Thu, 16 Apr 2020 08:18:07 +0000</pubDate>
				<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Database Consultants]]></category>
		<category><![CDATA[Google charts]]></category>
		<category><![CDATA[Dashbaord]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP web application]]></category>
		<category><![CDATA[ASP Dot Net developer]]></category>
		<category><![CDATA[ASP.Net core]]></category>
		<category><![CDATA[DotNet Development Company]]></category>
		<category><![CDATA[outsourcing dot net services]]></category>
		<category><![CDATA[Offshore DotNet development company]]></category>
		<guid isPermaLink="false">https://www.metasyssoftware.com/?p=3027</guid>

					<description><![CDATA[<p>Tracking KPIs, metrics and any other relevant data is important for any business looking to improve their performance, and proper [&#8230;]</p>
The post <a href="https://www.metasyssoftware.com/dot-net/a-case-study-building-a-dashboard-using-google-charts-in-asp-net/">A Case Study – Building a Dashboard using Google charts in ASP.NET</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></description>
										<content:encoded><![CDATA[<p>Tracking KPIs, metrics and any other relevant data is important for any business looking to improve their performance, and proper visualisation can be helpful for identifying trends and patterns. A useful information management tool is a dashboard, which can be used to provide a graphical summary of all relevant information. This article details a recent project, in which we successfully built a dashboard for a client using Google charts.</p>
<p><strong>Case study</strong></p>
<p>Our client wanted a way to efficiently track day to day reporting, check the status and progress of different tasks, and financial metrics like revenue, costs and profit-loss data. Previously, they had to access several different reports to analyse the overall business performance. We built a dashboard that allowed them to visualise the day to day business activities on a single screen, saving time and energy.</p>
<p>We decided to use Google Charts for a number of reasons:</p>
<ul>
<li>Google Charts are a good tool for visualization as the graphics are highly interactive.</li>
<li>There is a large gallery of chart types that allow for a lot of customisation for representing different kinds of data.</li>
<li>It is compatible with different browsers.</li>
</ul>
<p><strong>Technology and Implementation</strong></p>
<p>For the implementation of the dashboard we used jQuery and ASP.net. These technologies are easy to use, and allow for easy rendering of the page. Furthermore, Google Charts have an inbuilt library in jQuery.</p>
<p><strong>Implementation steps of Google chart in ASP.NET</strong></p>
<p>Before the implementation, all the Google Chart Libraries and the visualization API need to be loaded. The following procedure was used to include a chart in ASP.net:</p>
<ol>
<li>Create an html div to hold the chart as per our requirement.</li>
<li>Ajax call for loading data in the chart</li>
<li>Call the Visualization API before assigning it to the chart and set the chart options like legends and axis titles</li>
<li>Assign the div id to the chart</li>
<li>The call to the chart depends on the chart type (barchart, donut chart etc.).</li>
<li>Call the draw method of the Google chart and set the chart option.</li>
</ol>
<p><strong>Chart examples</strong></p>
<p>Donut Chart:</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-3028 size-full" title="donut chart" src="https://www.metasyssoftware.com/wp-content/uploads/donut-chart-.png" alt="donut chart" width="862" height="531" /></p>
<p>&nbsp;</p>
<p>Stack Chart:</p>
<p><img decoding="async" class="alignnone wp-image-3029 size-full" title="stack chart" src="https://www.metasyssoftware.com/wp-content/uploads/stack-chart.png" alt="stack chart" width="603" height="526" /></p>
<p><strong>Matching client requirements</strong></p>
<p>Our main challenge was to modify the chart to meet the clients needs.  For example, the client specified that the revenue chart was to be displayed in a rectangular format without a legend, or axes. We identified the “Timeline chart” as the most appropriate chart option amongst the templates although it still required customization. We modified the inbuilt generated SVG code from JavaScript by specifying the position and width and by hiding the x- and y-axes to match the client requirements.</p>
<p><img decoding="async" class="alignnone wp-image-3039 size-full" title="NG &amp; MNG data" src="https://www.metasyssoftware.com/wp-content/uploads/NG-MNG-data.jpg" alt="NG &amp; MNG data" width="627" height="50" /></p>
<p>If you are interested in a similar implementation of data visualisation, feel free to contact us. Our team has extensive experience in handling diverse custom ASP.NET application projects. <a href="https://www.metasyssoftware.com/contact">https://www.metasyssoftware.com/contact</a></p>The post <a href="https://www.metasyssoftware.com/dot-net/a-case-study-building-a-dashboard-using-google-charts-in-asp-net/">A Case Study – Building a Dashboard using Google charts in ASP.NET</a> appeared first on <a href="https://www.metasyssoftware.com">Metasys Software Pvt Ltd.</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.metasyssoftware.com/dot-net/a-case-study-building-a-dashboard-using-google-charts-in-asp-net/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
