Defining Public Properties in a Custom Client Component in AJAX ASP.NET?
Question: Defining Public Properties in a Custom Client Component in AJAX ASP.NET?
Question:Defining Public Properties in a Custom Client Component in AJAX ASP.NET?
AnswerIn ASP.NET AJAXclient components, property accessors are defined as methods of the class prototype. The accessor methods are named with get_ and set_ prefixes followed by the property name. The following example shows how to define a read-write property named interval in the class prototype.
get_interval: function()
{
return this._interval;
},
set_interval: function(value)
{
this._interval = value;
}
By:Aditya
Date:
Defining Public Properties in a Custom Client Component in AJAX ASP.NET?
Post Your Answers
Related Links
- How to raise a PropertyChanged Event in AJAX ASP.NET?
- How to Globalize and Localize client script files in AJAX ASP.NET?
Question:Defining Public Properties in a Custom Client Component in AJAX ASP.NET?