| Rafael del Corr...'s profile..:: Blog de Rafael del ...BlogLists | Help |
WMC Common EventsThere are certain events that all control has. Most of it are very similar to standard ASP. In the coming posts we will see properties and event of each control, for now I will describe the common events and it´s description. To call a method when an event occurs we must follow the following syntax: <mobile:Command ID="btnBoton" Runat="server" OnInit="Method1"> The name of the event must be preceded of the word “On”. It means, if we want to call a method when the Init event occurs we should write ‘OnInit=Method1’. The syntax to write a method is: <script runat="server"> The method receives two parameters: the first, is the object from where we are getting the method, and in second place, an EventArgs type that can be used by the developer by using different optional arguments for the event. Now, as we said at the beginning there common events between the WMC, and they are: DataBinding Disposed Init Load UnLoad PreRender <html xmlns="http://www.w3.org/1999/xhtml" > <script runat="server"> Well, today we talked about the common events of the WMC´s. In the followings posts we will see each control specifically, their properties, events and methods. See you soon. TrackbacksThe trackback URL for this entry is: http://mobiledevp.spaces.live.com/blog/cns!B1F45CF18768D48A!118.trak Weblogs that reference this entry
|
|
|