Categories
|
Test: First ASP.NET AJAX Server Control with C# Explained 5. Which of the following methods let you add properties and events to an AJAX Server Control in ASP.NET?
Results Congratulations! Correct Answer. You Answered: None. If you took the test, your answer will show up here. Correct Answer: GetScriptDescriptors() Explanation The GetScriptDescriptors() method helps with this.
protected override IEnumerable GetScriptDescriptors() { ScriptControlDescriptor descriptor = new ScriptControlDescriptor("AjaxServerControl1.ClientControl1", this.ClientID); yield return descriptor; }
This method returns a ScriptControlDescriptor. This class (ScriptControlDescriptor) is derived from ScriptComponentDescriptor, which is ultimately derived from ScriptDescriptor. The ScriptComponentDescriptor has methods like AddProperty() and AddEvent() to help with adding properties and event handlers.Take the Test Take the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 5 of 5
Test is Based on this Article
This article explains the various pieces of the code generated for beginning an AJAX Server Control. The class ScriptControl and the over-ridden methods GetScriptDescriptors() and GetScriptReferences() are explained, among others.
|
This is a test on the various pieces of the code generated for an AJAX Server Control. This includes the class ScriptControl and the over-ridden methods GetScriptDescriptors() and GetScriptReferences().
|
|
More Articles With Similar Tags
|
Google Suggest style autocomplete feature is readily available from the AutoCompleteExtender control from the AJAX Toolkit. This article shows how to use control with the data obtained from database.
|
This article talks about using an AJAX Server Control from a web site. Registering the control and adding a ScriptManager are also discussed.
|
This test has questions about using an AJAX Server Control from a web site. Registering the control and adding a ScriptManager are also included.
|
This is a test on the various pieces of the code generated for an AJAX Server Control. This includes the class ScriptControl and the over-ridden methods GetScriptDescriptors() and GetScriptReferences().
|
With an AJAX Server control, some additional JavaScript is generated behind the scenes (in addition to the JS you write). This article looks at this generated JavaScript when an AJAX Server Control is used.
|
|
|
|
|