Showing posts with label explain. Show all posts
Showing posts with label explain. Show all posts

Wednesday, March 28, 2012

Extender control

Hi,

Can someone explain how the extender concept works? I like the fact that you can drop an extender on a page for a particular type and all types on the page will extend a couple of properties.

I would like to apply this to some other scenarios but I dont necessarily want to use ajax to do it.

How does this work?

Is the source code available to find out?

Regards

hello.

extenders will only wrap client side behaviors so that it's easier to associate them with page controls. in my opinion, you should only use them if you're using client behaviors and you want to define its properties from the server side.


I find the use for extenders limited / tedious though. Remember that one extender is required per control you want to extend.

If you want to extend the behaviour of the whole type without adding any controls, you should look into control adapters.


Ooops, forgot the URL to the atlas control toolkit. This is the best way (IMHO) to learn about the mechanics: http://www.codeplex.com/Project/FileDownload.aspx?ProjectName=AtlasControlToolkit&DownloadId=4059

I will investigate this further, thanks for the feedback!!!


Thanks, I will check it out.

Monday, March 26, 2012

Explaining the structure of Rating/Accordian Control

Are there any documentation or could anyonoe take the time to explain/document, or a step by step run through of creating controls similar to these two? Where the extender is 'dynamically' attached to a server control in the code?

Thanks and Regards.

Hi Inventisity,

Accordion,NoBot,Rating, andReorderList are all examples of controls that wrap extenders. This pattern is useful in situations where the extender requires the markup of the target control to be in a specific (and possibly lengthy) format. You write the server-side extender and client-side behavior as usual. You then create a control (by inheriting from something likeWebControl orPanel) that renders the appropriately formatted markup, dynamically create your extender/properties, and point yourproperties.TargetControlID atthis.ID (and hence the rendered markup). Following common practices for writing server controls, the extender and its properties are created in theCreateChildControls method (which we make sure is called before anywhere we access the extender/properties usingEnsureChildControls). Finally, the necessary properties are exposed on the control (and just passed off to the actual properties object).

I think this should give you an idea of what these controls are doing, but please post back if you have any other unanswered questions. If you plan on writing your own control that wraps extenders, keep an eye onwork item #1687 because it applies to all of these controls.

Thanks,
Ted

Explain about updatepanel and its properties,mainly triggers?

Sir:

Explain about updatepanel and its properties,mainly triggers?

Basically, UpdatePanel enables sections of a page to be partially rendered without a postback.

For more info, go tohttp://asp.net/ajax/documentation/live/tutorials/IntroductionUpdatePanel.aspx

Explain about Asyncronous&Syncronouspostback?

Sir:

Explain about Asyncronous&Syncronouspostback?

Pls read the documentationhttp://ajax.asp.net/docs and check the video tutorialhttp://www.asp.net/ajax/documentation/