Posts Tagged ‘microsoft’

301 Redirect in IIS 6.0

Setting up a 301 Redirect in IIS 6.0

If you are planning to move a website to a new domain name, the most efficient way to setup URL redirection is to with the 301 Redirect. The 301 HTTP status code means moved permanently. For this reason, it is the best method to use to preserve a website’s search engine placement.

This tutorial will cover how to completely (including query strings) redirect a url. Setting up search engine friendly 301 Redirect for a web application in Microsoft IIS 6.0 is a matter of a few settings.

  1. In your IIS properties window, you will want to click Redirect to a URL radio button.
  2. Next, in the box below, you will want to input the new URL address. At the end of the new URL address, you want to append $S$Q to preserve the querystrings. Therefore, if I want to redirect to http://www.victorchen.info/test.php?index=1, the string will be http://www.victorchen.info/$S$Q.
  3. Finally, check the checkbox A Permenant Redirection for this resource.
  4. Click Apply and Close

Download Free Legal Microsoft Software

Microsoft has in the past offered their software to college/university students free of charge. The key was you needed to be an active student and find the download from the university/college website. Now, there is a website called Dreamspark where all the free software can be found! Some of the software available include:

  1. Microsoft Visual Studio 2008 Professional Edition
  2. Microsoft Visual Studio 2005 Professional Edition
  3. Microsoft Visual Studio 2005 Express
  4. Microsoft Expressions Studio 2
  5. Microsoft Sql Server 2008 Developer
  6. Microsoft Sql Server Express
  7. Windows Server 2008 Standard
  8. Windows Server 2003
  9. XNA Game Studio 2.0
  10. Microsoft Visual C# 2008 Express Edition
  11. Microsoft Visual Basic 2008 Express Edition
  12. Microsoft Visual C++ 2008 Expression Edition
  13. Microsoft Visual Web Developer  2008 Express Edition
  14. Microsoft Virtual PC

All software either comes embedded with a serial key or can be obtained through the website. All that is required is an email address of the college in which you attended. A copy of the software can be downloaded directly from Dreamspark.

New to the site is free download for high school students. All you need is to get your High School administrator to register on the Dreamspark and you can get your free legal copy. Visit Dreamspark to find more information.

Form Submit On Enter in Visual Studio 2008

Until recently, I had always used javascript to allow the enter key to submit a form (as seen in a previous posting called Submit Form On Enter Key Solution). Since then, I was queued into a GUImethod of controlling enter key form submissions in Visual Studio 2008 (and I’m sure this works in other versions as well).

How to submit a form in Visual Studio 2008To do this in the GUI style, click on the form of the page and then select the elements properties. Under the ASP.NET subheading, there is a form property called DefaultButton. Insert the button control id of the default button. This will essentially submit the form on enter (by performing the action on the specified button). The image to the left is an example of the form property section with a default button set to btnSetCookie. Note that for one reason or another, intellisense is not enabled on this property and you will have to manually type in the button control id.

Of course, you are not constrained to doing this in the GUI style. To submit a form on enter programmatically, simply find the form and insert the keyword defaultbutton=”BUTTON_CONTROL_ID_HERE”. Below is an example of how the above example would look programmatically.

<form id="frmTestForm" runat="server" defaultbutton="btnSetCookie">