Skip to main content

Home/ Agency Oasis Developers/ Group items tagged code

Rss Feed Group items tagged

4More

ASP.NET QuickStart Tutorials - 0 views

  • Securing Non-ASP.NET Files
  • ASP.NET handles requests for file extensions that are normally associated with ASP.NET, while IIS handles requests for all other file extensions. By default this means common file extensions such as .aspx and .asmx are processed by ASP.NET. This processing includes authentication and authorization to ASP.NET files. Sometimes though, a developer wants non-ASP.NET resources to be processed by ASP.NET. One reason for processing non-ASP.NET files through ASP.NET is to allow ASP.NET authentication and authorization to control access to these types of files. The combination of IIS6 on Windows Server 2003 and ASP.NET 2.0 provides the most flexibility for running the ASP.NET pipeline as part of processing a request for a non-ASP.NET resource. IIS6 includes support that allows ASP.NET 2.0 to perform authentication and authorization steps, and to then hand off the remainder of the processing of a non-ASP.NET resource back to IIS6. For example, it is possible to authenticate access to an ASP page using ASP.NET forms authentication, authorize access with ASP.NET's Url authorization and still allow the ASP ISAPI extension (asp.dll) to execute the ASP page. This support is possible because IIS6 introduced a new server support function for ISAPI extensions: HSE_REQ_EXEC_URL. Assume that a directory structure contains a mix of both ASP and ASP.NET files. The ASP.NET pages are used to log a user in with forms authentication, while the ASP pages represent the rest of the application. Using the IIS6 MMC, right-click on directory and create an application (this is the same step that is necessary when setting up a standard ASP.NET application). After an application has been created, click on the Configuration button that is located on the Directory property page. This will cause the Application Configuration dialog to be displayed. New to IIS6 is a feature called wildcard application mapping. The bottom of the Application Configuration dialog allows you to configure this feature. First determine the path for the ASP.NET ISAPI extension that processes ASP.NET files such as .aspx files. You can find this path by looking at the extensions that are listed in the Application Extensions list shown in the top half of the Application Configuration dialog. Click on the row in the list that maps the .aspx extension, and select the Edit button. In the dialog that pops up, highlight the text in the Executable textbox and copy it to the clipboard. Then cancel out of the dialog. Next, click the Insert button that is in the bottom half of the Application Configuration dialog. A dialog box titled Add/Edit Application Extension Mapping will be displayed. In the Executable text box, enter the path to the ASP.NET ISAPI extension that you copied to the clipboard earlier. The end result should look something like the screenshot below.
  • Click OK to close out all of the dialogs. Now whenever a request is made for any file, the request will first be processed by ASP.NET. If the web.config for your ASP.NET application has enabled forms authentication, an unauthenticated request for a .asp file will first trigger a redirect to the login page configured for forms authentication. After a user has successfully logged in, they will be redirected back to the original .asp page. When the now-authenticated user requests the .asp page, ASP.NET will first run through the FormsAuthenticationModule to verify that the forms authentication cookie exists and is still valid. If this check passes, ASP.NET will hand processing of the .asp page back to IIS6, at which point IIS6 will pass the request on to the ISAPI extension that normally process .asp pages. In this case the extension is asp.dll and the ASP page will then run to completion. The reason ASP.NET will pass the request back to IIS6 is that non-ASP.NET resources will fall through the list of configured <httpHandlers> to the following entry: <add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" /> The DefaultHttpHandler is responsible for handing requests back to IIS6 for further processing.
  •  
    "Securing Non-ASP.NET Files"
1More

PostSharp - 0 views

  •  
    Produce Cleaner Code with Aspects: Encapsulate common support behavior, such as exception handling, into classes that can be applied using .NET attributes. Remove Boilerplate Code: Stop duplicating code in and across systems. Build a support framework that your team can leverage across multiple apps. Focus on What Matters: Reduce system knowledge required across your team by factoring complex issues, such as multithreading, into aspects.
1More

Closure Compiler - Google Code - 0 views

  •  
    The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.
1More

Code Snippets - Snipplr Social Snippet Repository - 2 views

shared by Mark Ursino on 05 Nov 09 - Cached
  •  
    Free public social code snippet repository
1More

zipdecode - 0 views

  •  
    Flash app to de-code your zip code
1More

Telerik Trainer | Telerik - 0 views

  •  
    Experience the Telerik Trainer - state of the art training application that combines video training with hands on coding. Sit down, watch, load the code snippets in Visual Studio as you go and become a RadControls expert. It's fun and it's free.
1More

File Viewers Developer Documentation - 1 views

  •  
    How to implement custom "code transformers" to inject custom rendered code into a blog post
1More

The Controls Collection Cannot Be Modified Because the Control Contains Code Blocks : L... - 1 views

  •  
    "The Controls Collection Cannot Be Modified Because the Control Contains Code Blocks"
1More

Code Coloring - 0 views

  •  
    I know a bunch of people have custom themes and coloring for their visual studio settings. If you need the default code coloring for documentation or anything of that sort, then you can copy your coding here and it will set the default coloring for you.
1More

Google TV - Google Code - 0 views

  •  
    "Google TV Web Site Optimization Guide"

Google Code - 0 views

shared by mgraber on 04 Dec 09 - Cached
1More

AJAX APIs Playground - 1 views

  •  
    "Code Playground"
1More

jquery.qrcode - 1 views

  •  
    jquery.qrcode.js is jquery plugin for a pure browser qrcode generation. It allow you to easily add qrcode to your webpages. It is standalone, less than 4k after minify+gzip, no image download. It doesnt rely on external services which go on and off, or add latency while loading. It is based on a library which build qrcode in various language. jquery.qrcode.js wraps it to make it easy to include in your own code.
2More

Programming - SDN5 - 0 views

  • 3.1.  Programming Practices Data Structuring can influence the performance. If the logic for home page news articles is to present the latest three, the logic of looking for articles structured as /year/month/day/article is faster than sorting a large number of articles stored directly under /news.
  • 3.3.  Convert Underperforming XSL Renderings to .NET Certain operations can be completed much more efficiently in .NET than in XSL. Use Sitecore’s browser-based debugger to identify poorly performing code for migration to pure .NET. Invoking XSL may be more expensive in .NET than executing native .NET code.  If possible, certain XSL renderings, especially those which consume a great deal of resources or can only be cached under limited conditions should be converted to .NET method renderings, sublayouts or web controls.  Expensive XSL code can be converted to .NET extension controls and functions.
1More

Webshims lib - The capability-based polyfill-loading JS library - 0 views

  •  
    Webshims Lib is a modular capability-based polyfill-loading library, which focuses on accurate implementations of stable HTML5 features, so that developers can write modern, interoperable and robust code in all browsers. It is built on top of jQuery and Modernizr
1More

CSS3 vs. Photoshop: Rounded Corners and Box Shadows | Webdesigntuts+ - 1 views

  •  
    "CSS3 allows us to create shadows with only a couple of lines of code, the style in charge is "box-shadow". To create a Photoshop-like Drop Shadow you can use the following syntax: box-shadow: ; To create a Photoshop-like Inner Shadow you can use the following syntax: box-shadow: inset ;"
1More

Speed Tracer - Google Web Toolkit - Google Code - 0 views

  •  
    " Speed Tracer is a tool to help you identify and fix performance problems in your web applications. It visualizes metrics that are taken from low level instrumentation points inside of the browser and analyzes them as your application runs. Speed Tracer is available as a Chrome extension and works on all platforms where extensions are currently supported (Windows and Linux). "
1More

JIRA Text Formatting Notation Help - 0 views

  •  
    Learn the unique ways to format text in your JIRA tasks, e.g. code snippets, etc.
1More

Google Analytics Dot Net - 0 views

  •  
    GaDotNet is an open source library designed to make it easy to log page views, events and transactions, through code, without using JavaScript or even needing to have a browser.
1More

Badass JavaScript - 2 views

shared by Mark Ursino on 10 Jun 10 - Cached
  •  
    A showcase of awesome JavaScript code that pushes the boundaries of what's possible on the web.
1 - 20 of 123 Next › Last »
Showing 20 items per page