Archive for January, 2011

Following site seems to be interesting if u want to read latest tech books and can download 5 books per month for your every month pay …

http://my.safaribooksonline.com/ (Monthly Paid Service)

Use following command @ cmd to run SQL Server Mngt Studio under different user rights instead of the current logged in user of the machine … (Replace <domain>, <username>)

runas /netonly /user:<domain>\<username> “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe”

Browser to ASP.NET to Browser

Posted: January 28, 2011 in ASP.NET
Tags: ,

I came across a nice article on what happens with web request from Browser to ASP.NET (IIS Server) to Browser …

http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp

Summary of event sequence …

  •  IIS gets the request
  • Looks up a script map extension and maps to aspnet_isapi.dll
  • Code hits the worker process (aspnet_wp.exe in IIS5 or w3wp.exe in IIS6)
  • .NET runtime is loaded
  • IsapiRuntime.ProcessRequest() called by non-managed code
  • IsapiWorkerRequest created once per request
  • HttpRuntime.ProcessRequest() called with Worker Request
  • HttpContext Object created by passing Worker Request as input
  • HttpApplication.GetApplicationInstance() called with Context to retrieve instance from pool
  • HttpApplication.Init() called to start pipeline event sequence and hook up modules and handlers
  • HttpApplicaton.ProcessRequest called to start processing
  • Pipeline events fire
  • Handlers are called and ProcessRequest method are fired
  • Control returns to pipeline and post request events fire

Flash Cookie

Posted: January 27, 2011 in Flash
Tags: ,

Do you know that browser cookie is different from flash cookie?

Read below links about flash cookie and how to manage it …

http://www.imasuper.com/66/technology/flash-cookies-the-silent-privacy-killer/

http://en.wikipedia.org/wiki/Local_Shared_Object

You have to use following link from adobe to clear flash cookie used by different sites or to block flash cookie usage. Every site can build upto 100 kb size of flash cookie, stored in local hard disk with .sol extension.

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html

Do you know the difference between HTML & XHTML? Briefly saying XHTML is a combination of HTML + XML (in terms of rules that a  XML document follows).

Use the following validator link to validate whether your html document or page’s view source or web page URL is a well-formed document or not …

http://validator.w3.org/ 

Most of the browsers supports XHTML and it is important to understand XHTML especially when we build web pages targeting multiple browsers

http://www.facebook.com/Engineering

Watch out their events on events tabe to participate online or in person …

Paid services –

Read New Twitter performance analysis from http://www.stevesouders.com/blog/2010/09/22/newtwitter-performance-analysis/

http://www.learndevnow.com/ – good site but it’s a paid service

http://www.questpond.com/ – It’s a paid service.

ASP.NET 4.0 – New features/improvements for existing features

Core Services

  1. Web.config file refactoring – compilation tag (Default tag) – targetFramework=”4.0″ (default is 2.0)
  2. Extensible Output Caching – System.Web.Caching.OutputCacheProvider – local or remote disk, cloud storage, distributed cache engine
  3. Auto-start Web Application – IIS 7.5 – applicationHost.config – applicationPools tag – startMode=”AlwaysRunning”
  4. Permanently Redirecting Page – RedirectPermanent(“<UR>”), avoids HTTP 302 response used by Redirect and extra round trip to server
  5. Shinking Session State – SessionState tag – compressionEnabled=”true” – System.IO.Compression.GZipStream
  6. URL Size, Validation mechanism, extensible request validation – httpRuntime tag – maxRequestPathLength, maxQueryStringLength, requestPathInvalidChars
  7. Object Caching and Object Caching Extensibility – System.Web.Caching.Cache (old) – System.Runtime.Caching.dll (useful for both web, windows apps)
  8. Extensible HTML, URL and HTTP Header encoding
  9. Performance Monitoring for Individual Applications in a Single Worker Process
  10. Multi Targeting

AJAX

  1. Built-in support for JQuery in Web Forms and MVC
  2. CDN Suppport from MS – EnableCdn=”true” in ScriptManager tag
  3. ScriptManager Explicit Scripts – AjaxFrameworkMode=”Explicit”, asp:ScriptReference sub tag

Web Forms

  1. Meta Tags with Page.MetaKeywords and Page.Description properties
  2. Enabling View State for Individual Controls – default disabled in 4.0 – ViewStateMode
  3. Changes to Browser Capabilities – HttpBrowserCapabilities – uses browser definition files which are updated to include more browsers and devices
  4. Browser Capability Providers/Replacing existing logic or extending it
  5. Builtin support for Routing with Web Forms (available from 3.5 SP1) – Mainly for Search Engine Optimization – easy ways to use – RouteTable.Routes.MapPageRoute, RouteTable.Routes.Add/PageRouteHandler, Page.RouteData.Values[“<key>”] – accessing in codebehind, <%$RouteUrl:Key%>
  6. Setting ClientIDs – ClientIDMode – AutoID/Static/Predictable (for data bound controls)
  7. Built-in support for Chart Controls (available from 3.5 SP1) – 35 types, 3D support … etc
  8. Filtering data with QueryExtender on EntityDataSource/LinqDataSource – Search/Range operations
  9. Html Encoded Code Expression – <%: expression%> = <%=HttpUtility.HtmlEncode(expression)
  10. Project Template Changes
  11. Compatibility Setting for Rendering – pages tag – controlRenderingCompatabilityVersion=”3.5|4.0″ – 4.0 renders XHTML 1.0 strict markup
  12. Disabling Controls – as per HTML 4.01 spec it is meant for input tag elements – strictly followed in 4.0 and default class will be included for other tags
  13. Div around hidden fields
  14. Controlling table markup rendering for templated controls – RenderOuterTable property for FormView/Login/PasswordRecovery/ChangePassword/Wizard/CreateUserWizard
    Control enhancements – ListView, CheckBoxList/RadionButtonList – RepeatLayout=”Flow/Table(OrderList/UnorderedList)”, Menu control – renders ol/ul instead of Table, Wizard controls

Visual Studio 2010

  1. HTML/JS Snippets
  2. JS IntelliSense
  3. Better web packaging, remote web app deployment with one click, DB Deployment
  4. web.config Transformation

ASP.NET MVC Improvements – TBA