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.
matt
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 + ‘%’
Convert VB.Net to C#
Great VB.Net to C# converter tool: http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
Terminal Server switch screens
To switch Terminal Server between full screen and a window use CTRL + ALT + BREAK.
Reset the Outlook Junk Email Rules
How to reset the junk email rule:http://www.outlook-tips.net/howto/fix_junk.htm
SQL Server 2005 Remote Connections
How to configure SQL Server 2005 to allow remote connections: http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277
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 […]
ASP to PHP Convert Functions
This site might be useful for finding the PHP equivalents of ASP tasks: http://www.resources.fortunedesign.co.uk/jspack/asp2php.html Also, here is a chart of difference between the two languages: http://design215.com/toolbox/asp.php
SQL Server 2005 Command Line Backup
See this post: http://www.developmentnow.com/blog/SQL+Server+2005+Backups+From+The+Command+Line.aspx