{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
Test: First ASP.NET AJAX Server Control with C# Explained

4. What is the immediate base class of an AJAX Server Control?



Results
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: ScriptControl
Explanation
The ScriptControl class is part of the System.Web.UI namespace, which is part of the ‘traditional’ .Net Framework that you are used to (unlike the Sys.UI.Control class, which is a ‘class’ in the JavaScript code provided in the ASP.NET AJAX Extensions).

The ScriptControl class itself is derived from the WebControl class. You would use the WebControl class as the base class for custom controls (server controls) that have user interface. And, of course, the WebControl class is derived from the Control class, which is the ultimate base class for all the custom controls.

So, AJAX Server Control that is being created here has access to all the basic functionality available in the Control and WebControl classes. In addition, ScriptControl class has two important methods: GetScriptDescriptors() and GetScriptReferences().
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 4 of 5


Test is Based on this Article
icon-ajaxservercontrol-new-project.jpg
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.
icon-ajaxservercontrol-toolbox.jpg
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().
icon-ajaxservercontrol-client-files.jpg
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.
                                                                                                                                                                                                             
About  Contact  Privacy Policy  Site Map