How Do I Customize the Microsoft Office 2007 Ribbon?

Have you wondered whether you could do more to the new Office 2007 menu system than add buttons to the quick launch toolbar?

Here are two addins that may help you further customize the Ribbon in Office 2007. I’ve not used either of them.

You can also download a trial version of Office 2007.

Students can get a deep discount on Office Ultimate 2007.

How to I modify my ASP.NET website look and feel?

I do a reasonable amount of ASP.NET website or web application construction and have not found many websites that post sample ASP.NET masterpages or themes or skins. Generally, I end up modifying a sample css template. Here are some of the sites I have found useful.

One major difference about the templates is in how they utilize screen space. Some templates use only the center of the screen and would use, say only 50%, of a widescreen monitor.

These templates are free. Some require attribution.

Starter Kits

Open Source Templates

Open Web Design

Open Source Web Design

Free CSS Templates

Good Luck!

Redirect with ASP.NET

On several occasions I have needed to redirect a user from one place to another in ASP.NET. I like to do this with code similar to the following, which doesn’t require code-behind.

<%@ Page Language="C#" AutoEventWireup="true" %><!DOCTYPE html>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","/public/Default.aspx");
}
</script>

<html>
<head runat="server">
    <title>Redirecting...</title>
</head>
<body>
</body>
</html>

What does a website cost?

Don’t forget that growing an online business requires more than a website. You need to get online, attract customers, and manage your growing business.  Don’t forget the time it takes to continue to add new content to your website.

For those simpler informational websites, here’s what I would consider necessary

  • Buy a domain name ($10/yr)
  • Buy a hosting package ($77/yr)
  • Design your website ($2500-$8000)

For a commercial website you also need to consider

  • A merchant account for online orders (around $30 per month plus 3% of each transaction)
  • A security certificate for secure transactions ($50/yr and up)
  • Depending on your market, you may wish to add additional features that require licensing third-party web services.

Set DefaultButton for Enter KeyPress in ASP.NET

Have you ever tried to set the default focus and default submit button on an ASP.NET 2.0 Password Recovery Control? It takes some work, yet I was able to put this example together thanks to Spannjaars.com, Ellipse in the asp.net forums, and Google.

Aspx page

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server"OnVerifyingUser="PasswordRecovery1_VerifyingUser" />

Code behind (.cs)

protected void Page_Load(object sender, EventArgs e)
{
   // The first time our page loads we place the cursor in the
   // User Name textbox and make the Submit button the default button 
   if (!IsPostBack)
   {
      Page.Form.DefaultButton = PasswordRecovery1
         .FindControl("UserNameContainerID$SubmitButton").UniqueID;
      Page.Form.DefaultFocus = PasswordRecovery1
         .FindControl("UserNameContainerID$UserName").ClientID;
   }
}

protected void PasswordRecovery1_VerifyingUser
                  (object sender, LoginCancelEventArgs e)
{
   // This event fires after the User Name is entered; Place the cursor 
   // in the answer textbox and make the Submit button the default button 
   Page.Form.DefaultButton = PasswordRecovery1
      .FindControl("QuestionContainerID$SubmitButton").UniqueID;
   Page.Form.DefaultFocus = PasswordRecovery1
      .FindControl("QuestionContainerID$Answer").ClientID;
}