Redirecting the Default Document Page (/default.aspx) to the Root level (/) Page

by Colin Graham 8. February 2012 23:34

Great article on how to write SEO friendly URL in terms of duplicate content for the homepage.

http://swortham.blogspot.com/2008/12/redirecting-default-page-defaultaspx-to.html

 

thanks Steve

 

Tags:

SEO

Useful MIME types

by Jeremy Brown 3. February 2012 01:43

Useful MIME types for Microsoft Office documents:

You upload a file to your CMS via your rich text box but you get a 404 error.

The solution to this is Internet Information Services (IIS)


Out of the box, IIS6 only accepts requests for known MIME types. Since Office 2007 was released after Windows Server 2003 and IIS6, IIS6 knows nothing about the new MIME types. So you need to manually add them:

    Open Computer Management. (Right-click My Computer… Manage…)
    Right-click Internet Information Services (IIS) Management… Properties…
    Click MIME Types…
    Click New… and add the following:

.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation

Tags:

Hosting

SQL Server Code to Find Total Size of Database

by Jeremy Brown 2. February 2012 22:10

Total database size script

SELECT

[SpaceUsed(KB)] = SUM(alloc.used_pages)*8

FROM sys.objects obj

JOIN sys.indexes idx on obj.object_id = idx.object_id

JOIN sys.partitions prt on obj.object_id = prt.object_id

JOIN sys.allocation_units alloc on alloc.container_id = prt.partition_id

WHERE

obj.type = 'U' AND idx.index_id IN (0, 1)

Tags:

Converting text from asp.net into .csv

by Colin Graham 2. February 2012 02:08

One painful experience we have had this week has been in converting some data from one of our databases into a .csv.  This sounds simple doesn't it ??  however there were very specific requirements as the .csv had to be imported into a second system. 

We were using the stringbuiler.append method but found that the only way this would work was via the Stringbuilder.appendline method.

 

anyway hope this can help someone else out there.

 

C

Tags:

ASP.Net | VB.Net

nofollow attribute on links

by Colin Graham 25. January 2012 06:57

Question: If i have 3 links on a page, a linking to the same target page and i nofollow one of them will the others still be followed or does the one nofollow effect the other two links?

Answer: The nofollow tag is a per link attribute, not per page. So Google should follow the two links that you have allowed them to follow.

Tags:

SEO

Register ASP.Net 2.0 command line

by Colin Graham 20. January 2012 01:27

Please follow the procedure below to register ASP.NET:

  1. Open Command Prompt.
  2. Change directory as follows:
    • For 32-bit machines change to:
      <WindowsDir>\Microsoft.NET\Framework\<version number>\
    • For 64-bit machines change to:
      <WindowsDir\Microsoft.NET\Framework64\<version number>\
  3. Run the command ‘aspnet_regiis.exe -i’ and press enter.

Tags:

ASP.Net

Sending Email To Gmail problems

by Colin Graham 18. January 2012 19:05
Please make sure that you all follow the bulk senders guidelines, linked below.
If you can't send to Gmail addresses, also check out the troubleshooter at the second reference link.
According to Google employees who posted a reply in similar discussions, you will be removed from the blacklist if you follow the guidelines. The removal may take a few weeks.
References:

[1]
mail.google.com
[2]
[3]
 use this page to submit a request to google for http://www.rackaid.com/resources/gmail-blacklist-removal/

Tags:

Email

Top Ten Security Threats OWASP

by Colin Graham 16. January 2012 23:54

Tags:

Security

Issue javascript click event with hidden fields

by pmcgann 6. January 2012 19:51

While working on a recent project I had an issue where, when I called a click event through javascript the event would not fire and click the element I wished to click below is the function I had for this:

<script type="text/javascript">

     function select(val) {

       document.getElementById(val).click()

     }
</script>

Because the elements I was working with are hidden on the page the javascript would not fire so I replaced the above with the one below:

<script type="text/javascript">

        function select(val) {
            var fireOnThis = document.getElementById(val);           
            var evObj = document.createEvent('MouseEvents');
            evObj.initMouseEvent('click', true, true, window, 0, 0, 345, 7, 220, false, false, true, false, 0, null);
            fireOnThis.dispatchEvent(evObj);
        
     }
</script>

Hope this helps anyone with a similiar problem.

Tags:

Useful post re. common performance issues on ASP.NET web sites

by Colin Graham 19. December 2011 18:56

Tags:

ASP.Net | performance

 

Posts By Date

Log in