Web Developer Tips Posts

Tip #40: Did you know…How to scope master pages?

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...

Tip #39: Did you know… How to cancel a remote web operation in Visual Studio 2008?

In VS2005, when you connected to an FTP or FrontPage server, the IDE would not let you intervene to cancel the operation.  In VS2008, during most any operation that has you connecting to a remote source via FTP or FrontPage Server Extensions, you...

Tip #38: Did you know... How to use Failed Request Tracing to trace Rewrite Rules?

IIS7.0 Failed Request Tracing (FRT) is a powerful troubleshooting tool for request-processing failures. More details regarding FRT and how to enable it can be be found here . Once the failed request tracing is enabled for your site, do the following to...

Tip #37: Did you know…How to organize usings?

Overtime C# source code files may have unnecessary & unorganized using directives. Visual Studio IDE organize using options can help you to unclutter the source code. To organize the C# code right click anywhere inside the code editor, select Organize...

Tip #36: Did you know... How to manage pilot or beta program for your site using Application Request Routing in IIS7.0?

Won't it be cool if you can target and route appropriate users of your site to your pilot/beta/new looking site based on user's profile. This may help you in managing select users who have previously signed for pilot program and redirect them to new looking...

Tip #35: Did you know…How to add Intellisense from script libraries for JS files?

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...

Tip #34: Did you know... How to stop hot-linking from your site using URL Rewrite in IIS 7.0?

Hot-linking is a direct linking to a web-site's file (images, videos etc). An example can be using an <img> tag to display a JPEG image someone finds at your web site. This is also referred to as bandwidth theft as when someone is viewing this site...

Tip #33: Did you know… How to create Nested Master Pages using VS 2008?

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...

Tip #32: Did you know... How to easily create your own project templates?

Visual Studio makes it very easy to create item and project templates with the Export Template Wizard. Open the wizard by selecting Export Template... from the file menu. Note: For this tip I am using the Jobs Site Starter Kit . After selecting Export...

Tip #31: Did you know... How to have user friendly URL using IIS 7.0 URL Rewrite module?

It's always good to have friendly URL so that people visiting your site find it easier to remember. Asking your user to remember http://www.contoso.com/article.aspx?id=342&title=URL-Rewrite-Walkthrough for URL Rewrite walkthrough is not the nicest...

Tip # 30: Did you know... Ajax Extender controls UI behaves differently in VS 2008 than in VS 2005

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...

Tip #29: Did you know… How to enable Edit and Continue feature for Web Application Projects?

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...

Tip #28 Did you know… That “Go to definition” is supported for CSS Class?

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...

Tip#27: Did you know... The Microsoft Web Platform Installer RC release supports Windows XP as well as Windows Server 2003

Microsoft's Web Platform Installer has been a cool and simple tool that install's Microsoft's entire Web Platform including IIS 7.0, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and .NET framework. The user interface gives...

Tip #26: Did you know... How to have C# and VB.NET files inside your App_Code directory?

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...

« First ...  « Previous  3 4 5 6 7  Next »

Microsoft Communities