Skip to main content

Posts

Showing posts from November, 2013

Entity tags(Etags) in asp.net - ETag vs Header Expires

Entity Tags(Etags) in asp.net -  ETag vs Header Expires Introduction Entity Tags (ETags) are commonly used in Web applications to effectively leverage the power of using web farms, which is a non-fancy term for HTTP/S load balancing.  In web farms, a common practice is to set what is called ETags as it helps enhance performance in web farm scenarios.  ETags is controlled in IIS by a metabase property (ETAG_CHANGENUMBER) and this value is sent back to clients via response headers as instructed by the HTTP RFC 2616 .  If the ETag value is the same across a number of servers, then clients are not required to re-download content that already exists in the clients cache.  Without this value set to the same, clients might communicate on subsequent requests to another server in the web farm and receive an unnecessary response of data from the IIS server. For purposes of this blog, I will focus on modifications rather than further definition of ETags.  However, you can rea

View online files using the Google Docs Viewer

Use Google Docs Viewer for Document viewing within Browser I was looking for a way to let users see Microsoft Word Doc or PDF files online while using my application without leaving their browser without downloading files and then opening it to view with Word or PDF viewer . I was looking for some way out either via any PHP or Microsoft.NET libraries, did some googling on that; but later on I just got an idea that google already has all code written for me.. when I have any email attachment in PDF or DOC or DOCX google does it for me ..! Even while searching I can see PDFs by converting them in HTML. So I just googled it up and found that Google already has this ability that we can use Google Docs Viewer without any Google Account Login . YES that's true no Google Account login is required. It's damn simple and easy. Just pass document path as attachment as parameter and we are done. Google Docs Viewer gives us ability to embed PDF, DOC/DOCX, PPT, TIFF:

How to add array values to hidden fields in asp.net

I Have situation  need to store an array of string in a HiddenField in my web form with asp.net. But It was Generally Not Possible to Do , But we have different methods to Achieve this here the methods check once Previous Post  I was Explained about the    Fileupload show selected file in label when file selected  ,  Show jQuery UI Dialog Popup Window from Server Side ( Code Behind ) in ASP.Net ,  How to use the window.open()  method  ,   CONFIRMATION BOX WITH YES NO BUTTONS USING AJAX MODAL POPUP EXTENDER IN ASP.NET  , Dynamic Theme Switching - Creating User-Selectable Themes Probably a few methods would work. 1) Serialize the String[] in JSON This would be fairly easy in .NET using the JavaScriptSerializer class, and avoid issues with delimiter characters. Something like: String[] myValues = new String[] { "Red", "Blue", "Green" }; string json = new JavaScriptSerializer().Serialize(myValues); 2) Come up with a delimiter that never appears in t

Compare Outlook.com with Gmail.com & yahoomail .com

Compare Outlook.com with Gmail.com & yahoomail .com Compare Outlook.com to other leading online, personal email services to see how it stacks up against the competition. Outlook.com has an intuitive UI, unique tools to organize your inbox, and ways to keep your address book automatically updated Security & privacy Switch Now Keeps spam in your inbox at less than 3% SSL turned on by default Doesn't serve targeted ads based on email contents Modern inbox Virtually unlimited storage (free) Watch videos or slide shows from your inbox Share, view, and edit Microsoft Office docs using Office Web Apps Send photo slide shows from your inbox Organize emails by conversation (optional) Reading pane (optional) Send mail from other email accounts One click mark as read Organizational tools Create aliases—additional addresses that link to your inbox Organize inbox by custom categories, folders, or both Auto-categorize newsletters 1 1 Flag important messages