Tag Archives: How To

How to setup automatic Word Wrap in the Visual Studio Editor ?

In Visual Studio Code editor you can set the  Word wrap option which will automatically adjust long line of code in multiple lines based on the editor view area. This simple settings can be done from Visual Studio Tools > Options area. When this option is selected, based on the current editor width, if the portion of a… Read More »

How to Wrapping Code Block and Statements in Visual Studio ?

In this tips I am going to describe how you can automatically wrap up code blocks or code statement in Visual Studio. We can use Document formatting to format the whole contents, but that doesn’t wrap single line code block like Properties or not even single line multiple declaration statement.  Let’s consider an example, you are creating a… Read More »

Calling Methods From Watch Window

Watch windows is one of most commonly used debugging tool with Visual Studio. We generally used to explore the objects, values, properties and other nested objects as a tree structure. Most of the time we used watch window to only view the values or change the current object properties values to see the effects of changed object during… Read More »

How to calculate Session data size for SQL Server session mode?

SQL Server use ASPState database to store the session information for SQL Server Session mode. ASPState database having two tables ASPStateTempApplications and ASPStateTempSessions. ASPStateTempApplications  table contains Application ID and Application Name which is specific to each and every application which are using SQL Server session mode on the particular database. ASPStateTempSessions table having numbers of fields to store… Read More »

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

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 »