Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Application Dev... » Web   (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 339: Menus and Other Popups Without Any JavaScript

The other day I came across the following article by Eric Meyer -- http://meyerweb.com/eric/css/edge/popups/demo.html . Basically, instead of using JavaScript, you use CSS to change an element style that results in some other element(s) appearing (e.g.
Posted by irenak | 3 Comments

SYSK 337: JavaScript – Should You Define Functions Inside a Prototype or Outside?

Yesterday’s post described three ways to extend an existing type. It occurred to me that there is one more, slightly different mechanism, for defining a prototype function… you can think of it as Method 2-b. Consider the following: function TestClass(param1)
Posted by irenak | 2 Comments

SYSK 336: Three Ways to Extend a Existing JavaScript Type

Since I haven’t seen a clear and a relatively concise explanation on this topic, I decided to create this blog post… If you want to add a function (i.e. extend) to an existing type, there are three ways that I know of to accomplish this. For example,
Posted by irenak | 0 Comments

SYSK 332: How To Register Custom Controls Once For All Web Pages

Did you know that since .NET 2.0 you can define register directives in the <pages> element in your configuration instead of using @Register directive on every page? It’s especially useful if you’re using a custom control(s) in multiple web pages.
Posted by irenak | 0 Comments

SYSK 331: How To Expose A Client-Side Event From Your ASP.NET Control

Consider the following scenario – you create your own calendar control and you’d like to raise an event when a date is selected (e.g. OnDateClicked)… and you’d like for the users of your calendar control to process the event using JavaScript on the client
Posted by irenak | 1 Comments

SYSK 330: How To Use An Embedded Resource From A Sub-Folder

If you’re creating a custom client-side control by deriving from System.Web.UI.IScriptControl, you may want to embed the .js files into your assembly instead of having to deploy them to every web site that uses those controls (this is especially valuable
Posted by irenak | 3 Comments

SYSK 327: The Cost of RoundedCornersExtender From AjaxControlToolkit

More and more web sites are using rounded corners on spans (labels) and panels. And since AjaxControlToolkit makes it sinfully easy to do, before I start using it extensively, I decided to do some profiling to see the cost of that extender. Here is what
Posted by irenak | 4 Comments

SYSK 326: How to Measure AJAX Control Initialization Time on the Client Side

Say, you’ve added a few extender controls to make your AJAX-enabled web site look very ecstatically appealing to the end users. And now you’d like to evaluate the cost of beautifying your site in such manner. Measuring the additional page size bytes is
Posted by irenak | 1 Comments

SYSK 325: How To Tell Which UpdatePanel Issued a Page PostBack

If you have multiple UpdatePanel controls on a page, and your Page_Load has a lot of data retrieval and rendering logic, you may want to know exactly which UpdatePanel is being updated, and execute only relevant code segments to optimize performance.
Posted by irenak | 5 Comments

SYSK 310: The Difference Between setInterval and setTimeout

In JavaScript, you have two options to execute a specific function in the future, i.e. after a specified time interval: window.setInterval and window.setTimeout Both functions have similar signatures, e.g.: var timeout = window.setTimeout("javascript
Posted by irenak | 0 Comments

SYSK 309: How To Cancel a Web Service Request

AJAX makes asynchronous invocation of web service methods very easy. For example, the line below instantiates a web service proxy (MyService) and calls a method (MethodX): var request = new MyService().MethodX(param1, param2, OnRequestComplete, OnError);
Posted by irenak | 1 Comments

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 239: Header/ContentPlaceholder/Footer Without Hardcoding Header and Footer Height Size

A master page is normally comprised of a header, footer and a content placeholder. Keeping a header at the top is very straight forward to implement; so is keeping the footer at the bottom (just set the position attribute to fixed and bottom attribute
Posted by irenak | 3 Comments

SYSK 235: Display .pdf Document Search Results Programmatically

Say, you’ve got a bunch of read-only documents in .pdf format that you allow your web site users to view. And what you’d like to do is to create links that jump to certain sections of the document, but without making any changes to the original document.
Posted by irenak | 7 Comments
More Posts Next page »
 
Page view tracker