Server.ScriptTimeout Not Working

I had a file upload page that gave an HttpException with message “Request timed out”. Natrually, I set the Server.ScriptTimeout to 360. But I still got the error rmessage. To solve this I added the following to the web.config file: <httpRuntimeexecutionTimeout=“360“maxRequestLength=“41000“ /> The maxRequestLength did not solve the problem by itself. The executionTimeout was needed as well.  

Outlook Stationary

To create stationary for Outlook follow these steps: Create stationary as a local .htm page. Put the images in the same folder. Copy the .htm page and images into one of these folders:Vista – C:\Users\<logon user>\AppData\Roaming\Microsoft\StationeryXP – C:\Documents and Settings\<logon user>\Application Data\Microsoft\Stationery Then your stationary will be listed as a theme under the Signatures and Stationary […]

SQL Like with Parameter

I have a stored procedure that will do a search on records based on a value passed in. To use a parameter value with the SQL ‘Like’ command use this format:    SELECT * FROM clients WHERE FirstName LIKE ‘%’ + @sWhere + ‘%’ OR LastName LIKE ‘%’ + @sWhere + ‘%’  

Redirect to a single site

Use this ASP code to redirect your pages to a single site. Search engines may penalize you for duplicate content if they find content at yoursite.com and www.yoursite.com or multiple domains pointing at the same site. ‘—————————————–If  lcase(Request.ServerVariables(“HTTP_HOST”))=”lyonscom.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”www.sitenumber2.com” OR lcase(Request.ServerVariables(“HTTP_HOST”))=”sitenumber2.com” Then Response.Status = “301 Moved Permanently” If lCase(Request.ServerVariables(“URL”)) = “/default.asp” Then   ‘ change home page here  If Len(Request.Querystring)=0 […]