Let’s see this with an example. I have the following html code on my page. Now if I format the document by selecting Edit –> Format document (or Ctrl K, Ctrl D) The document becomes I want the content inside td should remain on the same line after formatting the document. Following steps would...

The design view in Visual Studio can display glyphs and borders for the hidden non - graphic elements (such as div, span, form, and script elements). This feature helps you to see where the elements are and avoid inadvertently deleting the non-graphic elements from your page while editing. To enable...

Master page for a Web form can always be set manually in the source code, but here is an option to select the master page while create the webform using the 'Select a Master Page' dialog. The path to select a Master page using the 'Select a master page' dialog is different for a Web application project...

Following steps highlight how a Visual Studio 2005 Web application project can be migrated to Visual Studio 2008. Take backup of the original project Open Visual Studio 2008 Click File -> Open Project and browse to the folder to open the project You will receive the following conversion wizard to...

If your web site is heavily data driven then here is a quick and easy way for you to create one without writing much code. All you need is Visual Studio 2008 SP1 or Visual Web Developer 2008 Express SP1 installed on your box. Dynamic Data Web Sites makes use of a mechanism called Scaffolding. When Scaffolding...

The Web Site Administration Tool provides a web interface for you to manage different web site configuration settings. To launch the tool, for Web Application Project click Project-> ASP.Net Configuration & for Websites, click Website-> ASP.Net Configuration for Website For WAP Visual Studio...

Gridview control has the flexibility to be configured how it's rendered using templates. Following steps show how the control's edit template can be changed in the Visual Studio Designer. I have a GridView hooked up to Sqldatasource using Northwind.products. I have selected Generate Insert, update and...

Master page is a template page that can be used to create a consistent layout for your application. First you create a master page to define the look & feel of the application and then you create the content pages that contains the content. You can attach these content pages to the master page at...

Here is an example to add intellisense for JS files in VS 2008. So, you have two Javascript files Jscript1.js with the following code function validateForm() { } and Jscript2.js (wherein you want current JScript file to show intellisense including objects & functions declared in Jscript1.js) Now...

VS 2008 and VWD 2008 both support Nested Master Pages which means you can have a Base Master page which would cater to the whole site and then you can further customize these Base Master Pages. Here is how you do it: 1. Create a BaseMasterPage.master for the base look: First we need to create a Base...

In VS 2005, you can drag and drop an extender control anywhere on the design surface. However, in VS 2008, you can drop an extender only on an ASP control which the extender can extend its functionality. When you drag an extender and hover it over a control, if the control can support the extender, you...

If you want to edit your WAPs while debugging them, here is how you do it: 1. Check the “ Enable Edit and Continue ” checkbox in the Web Properties page. 2. Check the “ Enable Edit and Continue ” checkbox under Tools->Options->Debugging->Edit and Continue These two setting will enable...

If you have a style defined as Class = ”fooRed” as shown below and want to quickly know what does fooRed style contain? < div class ="fooRed">
In RED
</ div >
Just place your cursor on fooRed and hit the F12 button. This will highlight the CSS class for...

If you are taking advantage of the App_Code folder to develop an ASP.NET WebSite some times you need to use code files that are written in different .NET languages. For example, you may want to use C# files and VB.NET files in the same web site: To be able to do this you can use a feature of the compilation...

VS 2008 has this cool feature of downgrading any CSS/HTML errors to warnings. This is helpful when you want to separate out validation errors and are looking for what is actually stopping your build. In VS 2008 the default behavior is to display any HTML/CSS errors as warnings as shown in the picture...

Sometimes while developing WAP you might want to switch to IIS Web server instead of the Visual Studio Development Server provided by VWD. Here is how you do it: 1. Go to the Properties page of WAP by clicking on properties under WAP in Solution Explorer or Right click on WAP and select Properties from...

Source View is the default view for the IDE when you edit a Web page. You can customize the IDE so that Design View is the default. Select the menu option : Tools – > Options… From the Options dialog tree select HTML Designer –> General Select Design View radio button from the Start Pages in section...

To absolute position any control on your designer, you select the control and then select the following menu option: Format –> Position… ->Position style ->Absolute.
Sometimes you may want the controls to be absolutely positioned on the design surface as soon as you drag drop...

If you want to work on an web application project using IIS that is sitting on another server, you can use the remote debugger and the web property pages in Visual Studio 2008 SP1. First, open your web application project on the server (e.g. \\server\share ), by going to File > Open Project. ...

There is a Tools –>Options setting under Text Editor –> CSS –> Format Node which helps you change the default CSS Format settings. This dialog gives you the flexibility of setting the default CSS Formatting styles in any of the following Styles: Compact rules: In this...

To run a page in Debug mode you will have to choose Debug –> Start Debugging or just press F5 . Debugging support is not enabled by default and if you have not run the debugger before on this web site, you will need to configure it. This is internally driven by a setting in Web.cong file. By default...

Here are the steps on how to create a Local IIS Virtual Directory.To start with you should have IIS installed on your box. Step1: Go to File Menu->Click on New Web Site. Step2: Click on the Browse button in the New Web Site dialog. This will bring up the “Choose Location” dialog in the picture below...

Tip#10 spoke about the New Style Builder Dialog. There are various other entry points to this dialog. You can invoke it from the following places from the IDE: CSS Properties Tool Window: Bring up the CSS properties dialog by selecting View –>CSS Properties. Click on any rule in “Applied Rules...

Visual Studio 2008 has a New Style builder dialog. This dialog box helps you design new styles and also preview it at the same time. Using this dialog, you can create a style which can live in current page, an existing external style sheet or a new external style sheet. You can create styles which are...