Natty Gur

Enterprise Architect on Enterprise Architecture

  • What web controls save (by default) in ViewState ?

    ViewState let web controls as much as users (programmer) to save and persist control state between page calls. Controls that wish to use viewstate services need to implement IstateManager interface. This interface consist from three methods (LoadViewState, SaveViewState , TrackViewState)  and  read only property (IsTrackingViewState).

  • Why I can't add my own event to page life cycle.

    Pluggable architecture with interceptor stack implementation is very useful combination. When I need to write infrastructure that need to implement several services for given class / classes I always try to implement interceptor stack with pluggable architecture. Such implementation enable me to add services without changing my code and let the user add his own services and/or set which interceptors will be call and in what order.

  • "htmlfile: Invalid pointer :0" Error

    Usually this error is by product of the way smartnavigation implemented.
    SmartNavigation uses hidden IFrame to get the content back from the
    server and then to inject the HTML to the page. This process cause
    controls events to loose attach to client side events and you end up with that
    error. The only work around that I found is to use registerStartupScript
    to reattach controls to events.

  • Step by step guide for developing custom server control with custom collection editor

    This guide is step by step instruction to create custom web control. The describe control contains complex property (Collection of classes) that the user can edit using custom type editor. Collection data will be preserving by control as control sub Html tags. This guide also contains most common issues relating to development such a control. The control that we about to develop name is commands and it part of NWAF framework that I'm working on. This control task is to let users to set commands to server control events laid down on web page. Commands has a property holding collection of classes that containing control name, event name and command name set to specify event. The user can add command to control events by using custom editor. Our custom editor show controls on page in hierarchal view. Choosing a control show it server side events and while selecting given event the user can set command name for that event. Controls event commands persist as inner HTML under commands control tags. The HTML output of our control should look like:

  • Step by step guide for developing custom server control with custom collection

    This guide is step by step instruction to create custom web control. The describe control contains complex property (Collection of classes) that the user can edit using custom type editor. Collection data will be preserving by control as control sub Html tags. This guide also contains most common issues relating to development such a control. The control that we about to develop name is commands and it part of NWAF framework that I'm working on. This control task is to let users to set commands to server control events laid down on web page. Commands has a property holding collection of classes that containing control name, event name and command name set to specify event. The user can add command to control events by using custom editor. Our custom editor show controls on page in hierarchal view. Choosing a control show it server side events and while selecting given event the user can set command name for that event. Controls event commands persist as inner HTML under commands control tags. The HTML output of our control should look like:

  • Looking for new job offers

    I'm about to finish my existing contract and I'm looking for new one. Currently I'm in Israel but I consider relocation to USA (west coast preferred but not a must). Yes, I need visa sponsorship and all that … But I'm positive sure that I can contribute a lot J

  • Loading dynamic user controls from Page_Load cause ViewState problems.

    I've seen couple of post on that issue lately so I decide to comment on that Issue. ViewState holds controls state as they where before server side processing of page finished. Controls state is saved by SavePageStateToPersistenceMedium to hidden field and retrieves from hidden field by LoadPageStateFromPersistenceMedium.