Microsoft .NET

How to improve the performance of the application in ASP .Net

Introduction

In this blog I would like to share some of my interesting findings regarding optimizing the page rendering time and increasing the performance of the web application using C#.NET.

Before starting, it is very important to identify which part of your application requires more attention, in order to improve the website performance. So below we have some ways to identify the pages.

Using VS.Net 2010 Profiler
Tracing asp.net web application
Extension (Firefox Firebug, Google Chrome Speed Tracer, IE9 Developer Tools)
Monitoring tools like fiddler is also helpful

So let’s move on to the implementation details.

1. Turn off View state if not […]

Encryption and Decryption of Video Files Using C#

Encryption is the process of translating plain text data (plaintext) into something that appears to be random and meaningless (cipher text). Decryption is the process of converting cipher text back to plaintext.

For smaller and simpler files (like Text files) we can use DES algorithm, but for other type of files such as a video, we’ll have to use AES or some other algorithm. For this example we’ll be using AES algorithm. AES is a new cryptographic algorithm that can be used to protect electronic data. Typically, AES is an iterative, symmetric-key block cipher that […]

Handling technical issues in the application development

One always encounters challenges and problems during designing and developing applications. Most of these challenges pop up in the initial phase of project while eliciting the software requirements or during design phase while layering out the functional requirements on to the technical architecture.

Most of these challenges are part of routine software development process and have proven solutions in terms of best practices, design patterns or technology features. However, sometimes there could be certain challenges that are specific to the project requirements and its scope.

To analyze such project specific challenges and derive optimal solution one […]

How to Retrieve Active Directory Information for Authentication in ASP.NET

Introduction

Hello Friends, I would like to share some of my interesting findings for retrieving the Active Directory information for authentication in web application using C#.NET.

So let’s move on to the implementation details.

Life has been made easy with the introduction of the System.DirectoryServices.dll library in .Net Framework. There’s a simple function which I have written that does the Forms/Window authentication to permit users to authenticate against Active Directory using the Lightweight Directory Access Protocol (LDAP).

This custom function basically takes a username, and tries to authenticate it on the given LDAP (Active Directory).

The code below demonstrates […]

Charts in Excel 2010 Using OOXML & C#

Open Office XML (also known as OOXML or OpenXML) is a XML based file format developed by Microsoft for representing office documents. An OOXML file is stored in zipped, XML files.

Spreadsheet documents in OOXML mainly contain following parts,

xl
worksheets
_rels
sheet1.xml.rels

sheet1.xml

andxmls depending on sheets .

theme
theme1.xml

drawings
_rels
drawing1.xml.rels

drawing1.xml

charts
chart1.xml

_rels
workbook.xml.rels

workbook.xml

styles.xml

sharedStrings.xml

docProps

_rels

.xml

We are going to talk about drawings and the chart parts in this blog.

Inserting chart in Excel

We will go through various chart objects in the following sections,

DrawingsPart

To insert any type […]