Tag Archives: How To

How to set automatically focus on ASP.NET controls when validation fails ?

By | December 25, 2010

If you are using ASP.NET Validation Control then you can use “SetFocusOnError” properties to automatically focus the control if validation fails. This will help the end user to identify the control easily. To set focus automatically you have to set SetFocusOnError=”True”. By default it’s false. SetFocusOnError of a validation control is associated with “ControlToValidate” properties. If the validation… Read More »

How to select Block of Code in Visual Studio?

By | December 20, 2010

You can select line by line code very easily using mouse or keyboard. But if you want to copy some code block where you don’t to select all part of line or something like that, here is a Quick TIP For you. Press and Hold “Alt” Key, and select the code region.

How to Place your reusable code into Toolbox in Visual Studio?

By | December 20, 2010

This is very important and small tips for all VS users. Sometimes we need a small piece of code in many places of our application or in some different application. What we do? We just copy the code from one page and paste it to the destination page.  Visual Studio having a great feature, that you can place… Read More »