Monthly Archives: March 2011

Color correction with Adobe Photoshop CS3

I recently got my hands on a book by Scott Kelby called the Adobe Photoshop CS3 book for digital photographers. Even though there is a wealth of knowledge on the web for how to do color correction, I haven’t found any tutorials as easy, and effective as what I’ve found so far in this book. Below is my first stab at color correction, sharpening, and skin softening as described in the book.

Before
Before image correction

After
After image correction

I’d love to hear any feedback. As mentioned above, this is my first try with any of these techniques, so be easy on me.

Adding a textarea to a gridview

Today I had the need add a multi-line textbox field inside of an ASP .NET Gridview, and also have the ability to edit this field. This is usually pretty simple with your standard asp:BoundField control, but making the field allow for multiple lines of input was not as easy.

I ended up using an asp:TemplateField to achieve the look I was going for. I added an ItemTemplate as well as an edit template, where I added a textbox with the textmode set to MultiLine.

        
            
                
                
                    
                        
                    
                    
                        <%# Eval("longDescriptionField")%>
                    
                
            
        
        
            
                
                
            
        

The itemTemplate just contains the string that I want to display, and the editItemTemplate contains the text box that has the textbox set to multiLine mode. This creates a textarea for the string that needs to be displayed, and I can modify the height and width of the control.

In order for me to update this field, I need to add a parameter in the code behind that represents this text area. I added the OnRowUpdating event handler so that I can modify the data source just before it performs the update. In the code behind, I have something like this:

    protected void SetUpdateParameters(object sender, GridViewUpdateEventArgs e)
    {
        myDataSource.UpdateParameters.Add("longDescription", ((TextBox)myGrid.Rows[e.RowIndex].FindControl("longDescriptionTextBox")).Text);
    }

Obviously the last step in the process is to write my update statement to update the information in the database, using my newly created parameter.

HTTP Error 401.3 – Unauthorized

Tonight I received the following error while trying to implement the Super Fish jquery menu plugin:


HTTP Error 401.3 – Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

At first it threw me for a loop, because my website could access all other files just fine. The only files that were being blocked, were the .js files that I was trying to use. The other .css files were coming through fine, and they had the same permissions setup as the .js files.

It turns the that the files were “blocked” by Windows because they “came from another computer”…

After unblocking the file, I was still getting the same error, and then I noticed that the file name font color was green, which seemed kind of odd. I opened up the advanced attributes on the file, and there was one more checkbox that I needed to clear. The file was encrypted, and therefore the web server could not read it. Clearing that box resolved the issue.