May 2004 - Posts
If you have enough time to watch 5 different movies at this MS theater and review it, you will get an email with redemption code for “Not-For-Resale copy of Visual Basic .NET 2003 Standard Edition.”
I am planning to watch this movie tonight with a huge popcorn bucket!!
Here is my requirement.
I need to collect lots of data from the user for our intranet application and store them in DB only if they provide all the required information. I am planning to use wizard kind of UI where the user has to navigate through each step and enter all the required information and Submit will happen in the last step. I am planning to use Usercontrols in panels in one aspx page for each step to collect inputs.
Now the question is how do you persist previous step(usercontrols) data til your reach final step for submission.
1) Session is one option if the size of data is small but in this case, it can be huge
2) Viewstate is another option but again I am doubtful whether it will persist the data when it is not posted back - that is I will show only one user control at any point of time and hide all the other user controls and so other controls will not be posted back. Otherwise I need to keep track of all the "value entered" usercontrols and keep posting back each one whenever I move to another step!!
Any other options?
My current project involves Windows Forms and all my previous experience involves WebForms. One thing I am wondering on Windows Forms is, why don't we have very broad error handling options in Windows Forms as WebForms. For example, we can trap error in ASP.NET in hierarchical way.
1. By using Try Catch in local routines.
2. By using Page_Error event
3. By using Global.asax error events
4. By redirecting control to specific pages depending on each specific error(like HTTP 400 and 500 specific errors) in Web.config file.
Of course, if we use Try Catch Finally in the main form which branches the control to different forms, all the unhandled exceptions can be captured. It is my wishful thinking that we should be able to control the unhandled exceptions in App.config file :)
Here is the Google's S-1 filing
. Tristan has an interesting guesswork on How many Google machines
are there, based on their S-1 filing.
Ever since I blog about my Gmail account, I am getting lots of emails about how to create Gmail account. According to CNET
, many beta testers are bidding their Gmail account in Ebay to make quick buck. Some of the bids are as high as US$199!!