Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Web » .NET   (RSS)

SYSK 373: How to Impersonate the Original Caller When Calling the WCF Service in ASP.NET by Configuration Only

If your WCF services use role based authorization, and you need to pass the identity of the end user (original caller), you have a few options: 1. Use <identity impersonate=”true” /> in web.config This is not my preference since there is quite a
Posted by irenak | 0 Comments

SYSK 364: AJAX Extensions 1.0 Source Code and Debug Symbols

Did you know that AJAX Extensions source code and debugging symbols are available to everybody at http://www.microsoft.com/downloads/details.aspx?FamilyID=ef2c1acc-051a-4fe6-ad72-f3bed8623b43&DisplayLang=en ?
Posted by irenak | 0 Comments
Filed under: ,

SYSK 354: How To Determine If The Page_Load Event Is Triggered by a Standard Page Postback or by the UpdatePanel?

Ok, so you’re in a Page_Load code block, and the this.Page.IsPostBack returns true . How do you know if the request is due to a “standard” page postback or as a result of an UpdatePanel triggered postback resulting in a partial page update? The answer
Posted by irenak | 4 Comments
Filed under: ,

SYSK 304: How to detect and handle form-based authentication timeout during ASP.NET script callback

First thing first – if you’re not familiar with ASP.NET script callbacks, make sure to check out http://msdn2.microsoft.com/en-us/library/ms178208.aspx . Now, what happens if the authentication token times out right before the client makes an asynchronous
Posted by irenak | 0 Comments
Filed under: ,

SYSK 290: ASP.NET AJAX -- $get vs. $find

Microsoft ASP.NET AJAX comes with a new method for getting a reference to an object representing an element on the page, e.g. input control, button, etc. -- $get . However, you might notice that there is another function that appears to do same thing
Posted by irenak | 4 Comments
Filed under: ,

SYSK 283: Use Caution When Using ‘Short’ Data Type in Enumerated Types

Consider the following innocent looking code: [System.Runtime.Serialization. DataContract ] public enum TestEnum : short { [System.Runtime.Serialization. EnumMember ] Undefined = 0, [System.Runtime.Serialization. EnumMember ] TestType1 = 1, [System.Runtime.Serialization.
Posted by irenak | 0 Comments
Filed under: ,

SYSK 250: How To Start ASP.NET Development Server Without Visual Studio

Since the introduction of the file system based web projects, the developers life has been greatly improved… That is unless you have to do a demo, or have other reasons why you don’t want to run Visual Studio in the background. So, your options are: Convert
Posted by irenak | 6 Comments

SYSK 246: User-Friendly URLs

Did you know that .NET 2.0 and later versions support URL mapping? Say you have a page with several tabs… You can give virtual page name to each tab, but still have all the code implemented in one physical .aspx file. Or, if you have a page that displays
Posted by irenak | 2 Comments
Filed under: ,

SYSK 233: How to Decrypt an ASP.NET Encrypted Data

During debugging and troubleshooting web applications, there are times when you need to decrypt a string that was encrypted by ASP.NET (see my yesterday’s post, http://blogs.msdn.com/irenak/archive/2006/11/02/sysk-232-why-are-there-four-http-get-requests-retrieving-an-ajax-enabled-web-page.aspx
Posted by irenak | 1 Comments
Filed under: ,

SYSK 232: Why Are There Four HTTP GET Requests Retrieving an AJAX Enabled Web Page?

Last weekend, I was playing around with an AJAX.NET application, and I notices that browsing for a simple page like this: <% @ Page Language ="C#" AutoEventWireup ="true" CodeFile ="Default.aspx.cs" Inherits ="_Default" %> < html xmlns ="http://www.w3.org/1999/xhtml">
Posted by irenak | 2 Comments
Filed under: ,

SYSK 229: AJAX.NET Update Panel or Web Service?

AJAX.NET has two methods for incrementally updating user interface of a web page – UpdatePanel and .asmx/.svc programming model. So, which should you choose when? If you need to have access to the view state of your server side controls, including the
Posted by irenak | 2 Comments
Filed under: ,

SYSK 227: Monthly Calendar control in ASP.NET

Did you ever need a calendar control that allows you to color-code certain days based on your business logic and display details on mouse-over event? Here is an example of what I’m talking about: So, perhaps the yellow color means “standard” appointments,
Posted by irenak | 5 Comments
Filed under: ,

SYSK 223: The Power of Double-Not Operator

If you need to convert a non-boolean data type to a boolean, and you’re dealing with a typeless language (e.g. javascript), you’ve got a couple of choices: write an if-then-else logic or use the not-not (a.k.a. double-not) operator. The results are same,
Posted by irenak | 2 Comments

SYSK 198: What is CodePlex?

Did you know that CodePlex is a new developer oriented web site containing source code for projects like “Ascend.NET” Windows forms controls ( http://www.codeplex.com/Wiki/View.aspx?ProjectName=ASCENDNET ), “Atlas” control toolkit ( http://www.codeplex.com/Wiki/View.aspx?ProjectName=AtlasControlToolkit
Posted by irenak | 0 Comments
 
Page view tracker