
<mobile:Label ID="Label1" Runat="server" Font-Bold="True">Student Name:</mobile:Label>
<mobile:TextBox ID="txtStName" Runat="server"></mobile:TextBox>
<mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click1">Get Info</mobile:Command>
<mobile:Command ID="Command2" Runat="server">Client Event</mobile:Command>
<mobile:Panel ID="Panel1" Runat="server">
<mobile:DeviceSpecific ID="DSP1" Runat="server">
<Choice Filter="isHTML32" Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ContentTemplate>
<asp:CheckBox ID="chkBox" runat="server" Text="CheckBox Control"
<Script language="jscript" for="window" event="onload">
window.Form1.Command1.onclick = ShowMsg;
function ShowMsg(e)
{
alert("Msg!");
}
</Script>
<Script language="jscript" for="Command2" event="onclick">
alert("Msg!");
</Script>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>
<mobile:Label ID="Label1" Runat="server" Font-Bold="True">Student Name:</mobile:Label>
<mobile:TextBox ID="txtStName" Runat="server"></mobile:TextBox>
<mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click1">Get Info</mobile:Command>
<mobile:Command ID="Command2" Runat="server">Client Event</mobile:Command>
<mobile:Panel ID="Panel1" Runat="server">
<mobile:DeviceSpecific ID="DSP1" Runat="server">
<Choice Filter="isHTML32" Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ContentTemplate>
<asp:CheckBox ID="chkBox" runat="server" Text="CheckBox Control"
<Script language="jscript" for="window" event="onload">
window.Form1.Command1.onclick = ShowMsg;
function ShowMsg(e)
{
alert("Msg!");
}
</Script>
<Script language="jscript" for="Command2" event="onclick">
alert("Msg!");
</Script>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>
<mobile:Label ID="Label1" Runat="server" Font-Bold="True">Student Name:</mobile:Label>
<mobile:TextBox ID="txtStName" Runat="server"></mobile:TextBox>
<mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click1">Get Info</mobile:Command>
<mobile:Command ID="Command2" Runat="server">Client Event</mobile:Command>
<mobile:Panel ID="Panel1" Runat="server">
<mobile:DeviceSpecific ID="DSP1" Runat="server">
<Choice Filter="isHTML32" Xmlns="http://schemas.microsoft.com/mobile/html32template">
<ContentTemplate>
<asp:CheckBox ID="chkBox" runat="server" Text="CheckBox Control"
<Script language="jscript" for="window" event="onload">
window.Form1.Command1.onclick = ShowMsg;
function ShowMsg(e)
{
alert("Msg!");
}
</Script>
<Script language="jscript" for="Command2" event="onclick">
alert("Msg!");
</Script>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>