Tag Archives: .net

Enabling IIS6 HTTP compression on SharePoint dynamic page

Using aspx dynamic page compression you can increase the page download time and user experience as well. As we know SharePoint serve the page dynamically, hence need to activate the dynamic page compression feature on IIS6 in order to get the good performance boost. Enabling the dynamic page on IIS your page will load around 7 times faster. HTTP Compression is a feature of IIS v6. By default, this feature is not turned on. For general information on HTTP compression, the following document is extremely helpful. Continue reading

Posted in .Net, Sharepoint | Tagged , | 1 Comment

Asp.net sending email with zip file as attachment

In this article I would like to explain how to send the compressed or zip document as an email attachments. You can find the c# source code sample how to send the email with zip format. If you are sending the html attachment or some JavaScript there might be change attachment get corrupted. If you are using the outlook web access (OWA) email client to read the email, there might be change of your html get corrupted because of OWA html filtering option. Continue reading

Posted in .Net | Tagged | 2 Comments

Asp.net file compression using opensource library

Compression system will be very handy invention especially for internet user. Using compression we could save the huge space. If we send the lesser sized data we could save the bandwidth and achieved the faster download speed. We could compress the files when we are sending the file over the internet using Email, FTP etc. If you are sending the crucial financial data then it is better to encrypt with the password. These are all the extracted features of zip file or compression over the internet. Continue reading

Posted in .Net | Tagged | 3 Comments

Microsoft Sharepoint updating Author-Created By or Editor field programmatically

When i started working with sharepoint event receiver, i have a requirement to update the sharepoint list’s author and editor value. I have tried googling but I’m not able to find good resource on this. So i have decided to share the code snippet to update the author and editor using sharepoint object model. Continue reading

Posted in Sharepoint | Tagged , | Leave a comment

Microsoft Sharepoint SystemUpdate and Update using object model

When i started using Microsoft sharepoint Object Model, We started using SPListItem update method, Sharepoint OM providing the different approach to update the list item. So i decided to brief on the difference between Item Update and SystemUpdate method. Continue reading

Posted in .Net, Sharepoint | Tagged , | Leave a comment

Email asp net Sending email using godaddy hosting account

You can send the mail using godaddy hosting acocount using .NET 2.0 System.Net.Mail code namespace. Here is a simple snippet of how to send an email message from “email@website.com” to multiple email recipients Continue reading

Posted in .Net | Tagged | Leave a comment

Singleton pattern – Design pattern

Singleton pattern is the one of the best known pattern in the software engineering. The singleton pattern is a design pattern that is used to restrict instance of class to one object, and usually gives simple access to that instance. Continue reading

Posted in .Net | Tagged | Leave a comment

Microsoft Sharepoint persisting webpart property values

When we tried to save the custom webpart property it is not retaining the values for feature usages. We explored possibility to find the solution so now I am able to save the property values. Microsoft published good article on this. Normally webpart persists personalization changes on webpart control without need to developer to call the SetPersonalizationDirty method. But there two cases which developer need to call this method. Continue reading

Posted in .Net, Sharepoint | Tagged , | Leave a comment

Sharepoint OM, getting email ID from login user name

You can use sharepoint object model you can get the email id from user name. I have created one method to get the email after passing user first and last name. Continue reading

Posted in Sharepoint | Tagged , | Leave a comment