Explain .NET Mobile Events?
Submitted by: Administrator.NET mobile controls expose events which are device independent. They have an object model with programmable properties, methods and events.
Eg:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"%>
<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<script runat="server">
string age;
private void AgeClick(Object sender, EventArgs e)
{
age=text1.Text;
ActiveForm=Form2;
}
private void Form2_Activate(Object sender, EventArgs e)
{
message.Text="You are " + age + " years old";
}
</script>
<Mobile:Form id="form1" runat="server">
<Mobile:Label runat="server">Age?</Mobile:Label>
<Mobile:TextBox runat="server" id="text1" />
<Mobile:Command runat="server" OnClick="AgeClick" Text="Submit" />
</Mobile:Form>
<Mobile:Form id="form2" runat="server" OnActivate="Form2_Activate">
<Mobile:Label runat="server" id="message" />
</Mobile:Form>
Submitted by: Administrator
Eg:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"%>
<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<script runat="server">
string age;
private void AgeClick(Object sender, EventArgs e)
{
age=text1.Text;
ActiveForm=Form2;
}
private void Form2_Activate(Object sender, EventArgs e)
{
message.Text="You are " + age + " years old";
}
</script>
<Mobile:Form id="form1" runat="server">
<Mobile:Label runat="server">Age?</Mobile:Label>
<Mobile:TextBox runat="server" id="text1" />
<Mobile:Command runat="server" OnClick="AgeClick" Text="Submit" />
</Mobile:Form>
<Mobile:Form id="form2" runat="server" OnActivate="Form2_Activate">
<Mobile:Label runat="server" id="message" />
</Mobile:Form>
Submitted by: Administrator
Read Online Microsoft .Net Mobile Job Interview Questions And Answers
Top Microsoft .Net Mobile Questions
☺ | Explain .NET Mobile Events? |
☺ | Do you know TextBox and TextView controls of .NET Mobile? |
☺ | What is the difference between .Net Mobile Pages and ordinary .NET web page? |
☺ | Explain a .NET Mobile example with details? |
☺ | What is .Net Mobile Forms? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |