Chalaki Systems
Training About

Tag Archives: C#

How to design Tag based hierarchical categories, manage them using ASP.NET, EF, MVC, View Models

By admin | Published: November 21, 2014

If you used wordpress, you will notice how it lets you assign categories to your posts. These categories or Tags are hierarchical and nested. One can assign one or more of these categories to a post (article). Here I’ll show you how to create such functionality and apply that to Questions inside a Quiz. The […]

Posted in ASP.NET | Also tagged ASP.NET, MVC, Tag | Leave a comment

How to program MSAGL (GLEE) to create hierarchical graph layouts

By admin | Published: July 15, 2011

MSAGL (Microsoft Automatic Graph Layout) is a .NET library and tools created by Microsoft Research for creating hierarchical graphs, viewing them and saving them to bitmaps. MSAGL is built on the principle of the Sugiyama scheme. MSAGL can be used to create layered or hierarchical graph layouts. These layered graphs can be used to represent […]

Posted in ASP.NET, Charting, Windows Forms | Also tagged GLEE, Graph Layout, MSAGL, Visual C# Express 2010 | 7 Responses

2 Easy steps to learn ASP.NET Routing, map URLs to aspx and pass variables

By Raja S | Published: April 5, 2011

It is becoming extremely important now a days to use simple URLs  without showing the .aspx extention and also hiding the Query String parameters such as page.aspx?name1=value1&name2=value2. SEO experts swear that simple canonical urls such as mysite.com/CountryName/CityName/CompanyName/ are much better in terms of search engine friendliness than mysite.com/getlisting.aspx?Country=CountryName&City=CityName&ampCompany=CompanyName We can clearly see that the former URL is much better even for […]

Posted in ASP.NET, Routing | Also tagged ASP.NET, Canonical, Routes, RouteTable, URL Mapping, Visual Studio 2010 SP1 | 5 Responses

4 Simple steps to learn SqlCeDataAdapater, SqlCeDataSet to modify data in SQL Server CE tables

By Raja S | Published: March 18, 2011

You already know, from my previous blog  Using ADO.NET SqlCeCommand and SqlCeDataReader to select data from SQL Server Compact how to SELECT data for ReadOnly using SqlCeDataReader Object. You can’t update the data using SqlCeDataReader object.  Instead you will need to use SqlCeDataAdapter and SqlCeDataSet objects if you have to make any changes and save the data […]

Posted in ASP.NET, Data Access, SQL Server Compact | Also tagged .NET, ADO.NET, ASP.NET, Data Access, SQL Server Compact | 5 Responses

How to select data from SQL Server Compact CE using ADO.NET SqlCeCommand and SqlCeDataReader Objects

By Raja S | Published: March 17, 2011

In this post, I will show you how to use some of the classes in System.Data.SqlServerCe Namespace to access a SQL Server CE database from a ASP.NET 4.0 web forms application. The DLL that contains System.Data.SqlServerCe Namespace and all classes in that namespace is System.Data.SqlServerCe.dll. The System.Data.SqlServerCe namespace is the managed data provider for SQLServer CE. This namespace is a collection […]

Posted in ASP.NET, Data Access, SQL Server Compact | Also tagged .NET, ASP.NET, Data Access, SQL Server Compact | 1 Response

4 Easy steps to create and consume .ACX web user controls in ASP.NET 4.0, Visual Studio 2010 SP1

By Raja S | Published: February 2, 2011

What are ASP.NET Web User Controls? Web User Controls are re-usable controls that you can create and use across multiple ASPX pages. When you need functionality in a control that is not provided by the built-in ASP.NET Web server controls such as <asp:TextArea>, you can create your own controls. User controls are containers into which you can […]

Posted in ASP.NET, User Controls | Also tagged .NET, ascx, ASP.NET, Cache, Reusable, User Control, ViewState | Comments closed

How to maintain HTTP session state with cookies in C# CGI program in Visual C# 2010 Express and IIS

By Raja S | Published: June 20, 2010

In my previous post 8 steps to develop, setup and call c# cgi programs in IIS 7, we learned how to create a CGI program in C#, install it as a website and call it using GET and POST. In this article, I am going to modify that C# program to include code to read and […]

Posted in Web Development Fundamentals | Also tagged CGI, Cookies, GET, HTTP, HTTP Headers, IIS, POST, Query String, Visual C# Express 2010 | Leave a comment

8 Quick steps to develop and setup C# CGI program in IIS 7

By Raja S | Published: May 20, 2010

CGI or common Gateway Interface is the protocol used by classic web forms to exchange data between the user and the web server. CGI uses HTTP protocol, which is a simple text exchange protocol on top of TCP/IP. In the HTTP protocol, environment variables of the OS and input from standard input devise such as […]

Posted in IIS, Web Development Fundamentals | Also tagged CGI, GET, POST, Visual Studio 2010 SP1 | 3 Responses

How to use the System.Web.Caching.Cache Object – ASP.NET Data Caching

By Raja S | Published: March 21, 2010

Data caching is storing of data in web-server’s (IIS) memory for quick access by requesting browsers.  Any information that is expensive to get (in terms of performance) is saved in the data cache. For example, commonly SELECTED database values that do not change often can be stored in data cache.  This way instead of making repeated calls to SELECT […]

Posted in ASP.NET, Caching | Also tagged .NET, ASP.NET, ASP.NET Performance, Cache, Data Cache | 2 Responses

ASP.NET 4.0 Output Caching – What is VaryByParam and VaryByCustom

By Raja S | Published: February 9, 2010

One of the easiest ways to cache ASP.NET pages is using OutputCache page directive. ASP.NET output caching reduces the time needed to execute ASP code by simply saving the output of the ASP in the HTML format inside IIS memory and returning the saved or cached HTML in the future request to the same page. So the […]

Posted in ASP.NET, Caching | Also tagged .NET, ASP.NET, ASP.NET Performance, Cache, Output Cache, VaryByCustom, VaryByParam | 4 Responses
  • Tags

    .NET ADO.NET ascx ASP.NET ASP.NET Performance asp:Content asp:ContentPlaceHolder C# Cache Canonical CGI Cookies CSS3 Data Access Data Cache Deployment Entity Framework GET HTML5 HTTP HTTP Headers IIS IIS Express 7.5 Install Master Page MVC3 Output Cache Partial Views Port POST Query String Reusable Routes RouteTable SQL Server Compact URL Mapping User Control VaryByCustom VaryByParam ViewState Virtual Directory Visual C# Express 2010 Visual Studio 2010 SP1 Web Platform Installer Windows XP
  • Recent Posts

    • How to design Tag based hierarchical categories, manage them using ASP.NET, EF, MVC, View Models
    • Two ways to render MVC3 Partial Views: Client side Javascript or server side html helper
    • How to Bind a DropDownList with a EditItemTemplate in the GridView
    • Fundamentals of ASP.NET MVC 3 Partial Views
    • How to program MSAGL (GLEE) to create hierarchical graph layouts
  • Calendar

    December 2019
    M T W T F S S
    « Nov    
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
Copyright 2005-2011. Privacy Policy.