Posts

Showing posts with the label Friday

Prevent user input for Number / Chars / etc

  Today, I’ve come across of a requirement within a windows application to suppress the user input and allow only integers for a text box. Currently am working with .net framework 4.0 and I use C# as programming language. Before I search the web for any code samples, MSDN is my primary source for understanding the control behavior as well as the different events that are associated. In most cases MSDN would have proper help text and meaningful examples. For my requirement, eliminate user input if it is other than integer, I found a link from MSDN. The given example is inappropriate for eliminating the key input. The given example doesn’t work for you, if your interest is to prevent the user to input anything other than the numbers. I’ve tried and came up with a simple workout for preventing the user to input other than numbers. Here is my code, please comment and revise if it can be more simplified. Step 1: We need a small reusable function as mentioned below. bool IsDigitInput( ...

ASP.NET Page Life Cycle

Image
Most of the ASP.NET developers ignore the page life cycle. They dig only when it is a trouble shooting situation or fixing a bug or as part of a rescue mission. For all those developers, there is an article that explains in detail about ASP.NET v4 page life cycle. Click here to read more in detail. But a picture is worth more than 1000 words. So is this. Isn’t it??

VS 2010 Release Date

Image
Visual Studio 2010 & .NET v4 would release on 22nd March. Microsoft is giving an offer by name “Ultimate Offer” and the deadline for this offer is 12th March. Below is the image that clearly explains the various features of this “Ultimate Offer”