Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » ASP.Net   (RSS)

How to check if a user belongs to a Security or Distribution group in ASP.Net

If you need to check at Runtime if your User belongs to a Security group. Here's how to do it - Assuming the IIS Application has Authentication set to "Windows Authentication". The Request object of HttpContext has the Logged in users Identity which contains

ASP.Net AJAX 4.0 Client Templates in depth

The best way to know a Javascript library is to pry open the javascript file and look at the details. This release has a lot of powerful features which I will discuss here. 1. Sys.Observer – Ajax 4.0 includes an implementation of Observer Pattern. In

ASP.Net RssToolkit Version 2.0

I have been part of the team working on the latest version ASPNET RssToolkit, originally created by Dmitry Robsman . We enhanced this awesome Toolkit and have just released version 2.0 of the Toolkit. Please check out Codeplex to download this toolkit.

Creating Widgets using Javascript Simple Syndication - JSS

Web syndication is a way to make content of your website or application available for others to use. Rss/Atom/Rdf are specifications, which websites use for this purpose. However to consume such formats in your website, you need to know a little programming

Convert Rss to JSON - Serialize to JSON by using XmlSerialization and JavaScriptSerializer

JSON (Javascript Object Notation) – is a light weight data interchange format. It essentially is composed of key-value pairs. For Example – XML < rss version = " 2.0 " > < channel > < item > < link > http://test.com</link >
Posted by shahpiyush | 8 Comments
Attachment(s): RssToJson.zip

Compressing ViewState of your Application

.Net framework has an entire namespace for compression - System.IO.Compression. GZipStream is the class used for Compression and Decompression. .Net Framework 2.0, exposes a new class called PageStatePersister. This class is used to override and customize
Posted by shahpiyush | 0 Comments
Filed under: ,

Attachment(s): ViewStateCompression.zip

Sharing Master Pages amongst Applications by Embedding it in a Dll

If you need to share Master Pages across applications and you don't want to create a ton of virtual directories, below is a way to do that. You can embed the Master Page as a Resource in your Dll and use VirtualPathProvider mechanism to call the Resource.
 
Page view tracker