Blog Archives

ASP.NET State Management

Definition-:

State Management: By name it means managing or preserving state of a control, web page or data.

Whenever we work on a page in asp.net have we ever thought how controls are able to get there state back after a post back. In real all the controls are stateless means when ever there is a postback state is lost. Then how are they able to get there state back after a postback???
This is all because of state management technique that asp.net provides for all the controls, web pages or data.

Now the question comes. How?
How are state management techniques used? Is it used on server side or client side? How many types of state management techniques are there?

Read the rest of this entry

Advertisements

Generating Web Page to PDF

Background:

Easiest, simplest, fastest and of course free way to generate PDF or images for web pages:

– Tool is named as “wkhtmltopdf” and “wkhtmltoimage”
– Both are in exe format.
– Written in C++ and also its source is open and licensed under open source.
– Because it is an exe, we can use this tool in both windows and web applications. And it is in C++  so it can be used for windows platform as well as in Linux based systems.

In Details:

I will be explaining how to use it in web applications to generate PDF and push that PDF to client. Rest can be taken care by considering this as an example.
You can download the exe from  https://code.google.com/p/wkhtmltopdf/downloads/list. And trust me this is really cool kit as it provides a lot of flexibility to hide or extend the content of the page in nearly every manner.
Read the rest of this entry

%d bloggers like this: