Sunday, December 26, 2010

Moving to ASP.NET MVC

I was a long time PHP guy. So, I had grown up with a thought that PHP Language is server thing and has nothing to do with HTML. That is actually great. But in ASP.NET, that doesn’t really fits all that well. From now on, I will refer ASP.NET as ASP.NET Web Forms. Web Forms were developed keeping in mind to hide to complexity of HTTP from developer having “VB6” Windows Forms background. HTTP is stateless. Web Forms has tried hard to make HTTP state full, which brings up ViewState, Post backs and Page Life Cycle. ViewState is chunk of encoded response state data that is injected into every page so that on the next request previous state can be accessed. That was a gift for Windows Forms developers to start Web Development without actually learning the core HTTP cycle. I would also like to admit here that Web Forms is very mature, it doesn’t matter you use Drag-N-Drop approach to make pages, but you can still have full control over the output. But there are still few things that really freaks me out like ViewState Size, allow only one form tag on a page, page and control events, difficulty in client side scripting because of lack of control over HTML etc.

Well, I had work with Web Forms on few projects like DVD Store, Shopping carts, Ticket system, Appointment system, Feedback gathering system etc. At the start of every project, I fall into loop of choosing the best architecture for application. It was devastating for me. After few projects, I ended up with something like below screen capture and promise myself to strict to this.

Thursday, September 23, 2010

Populating Data to PDF Forms for Better Prints

There are often situations, when your client wants series of Print out of form with data populated dynamically. These forms are designed Official and follows a legal format. In designing, the issue which frustrates designers a lot is uneven layout in different Browsers. Same issue occurs when we want to print from a Web Page (CSS for Print) or Document (Office Word). Luckily, for that purpose we have a perfect solution, and that is PDF (Portable Document Format). PDF Format always prints same on paper as we see on the screen (like WYSIWYG). The scope of this article is to show how to utilize “iTextSharp” Tool to insert data into the fields of a PDF File. I will try to demonstrate all the necessary controls that are used in forms.

Friday, August 13, 2010

I'm tired of being what you want me to be

So, this is my new addiction. Song is "Numb" by Linkin Park. I just love it, each and every word in the song is so beautiful and so true. To me, its about the burden of live up to someone else's expectations but finally you ended up that you want to be on your own.

Sunday, July 4, 2010

ASP.NET Image Manipulation: ASP File as the Image Source

.NET Framework with no doubt is very extensible and has a wide range of Classes which helps you to do anything, really anything. In case of graphics/image manipulation, there is a library called GDI(Graphics Device Interface) which is a part of .NET Framework and has a wide range of classes to perform operations like Create/Edit/Draw/Save on Image/Graphics. The scope of this article will be to opening a image file and sending Response as image which is Binary, so an ASP file (.aspx) act as the Image File which can be used inside the Generic <img> tag as the source. All of the code will be in C#.

Thursday, June 3, 2010

Adapting Microsoft .NET Framework Technology

It is now quite long, I have updated blog. Actually, it was hard time for me. There were whole lot of bad and some good things happened during this time. Things like not getting good grades and even more worse that again got compartment in one of the subject, really making me fell down. At one point of time, I even thought of stop doing all these computer stuff. But luckily, I can't. :) Later on, me and a friend, was discussing about doing something together and so decided to start a Technology Blog. We started off with very excitement. But later on, we don't write much on it. By the way, blog is

When I was new in Web Technology, it seems like PHP is only giant available to develop Dynamic Web Applications. I really work hard on learning and practicing it. It was really fun. But when I try to build larger Applications. I got stucked every-time. There was so many ideas, which I was unable to implement fully, I always got stuck in between the Projects. The reason is, PHP is a scripting language, which is not targeted for developing a specific kind of Web Applications.