Fun With Panel Control


Panel Control is a useful control in mobile programming and till now, we hadn't explore it. Ok, so this topic is dedicated to the Panel Control. You can do everything in one Form with different Style make the controls visible or invisible.

Actually when I was traveling just out of inquisition and usual habit of talking, I asked a kid "So Boss, what do you want in your Mobile" and you  won't believe what he replied to me. He said,  "KBC" whoever in India no need to tell them what these three stands for while for others. I will expand this stands for "Kaun Banega Crorepati" a popular quiz show. An Indian version of "Who wants to be a millionaire". So this is my first Step to that  Demand.

Source Code:

// Source Code starts
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"Language
="c#" %>
<%@ Register TagPrefix="mobile"
<script language="c#" runat="server">
public void SubmitBtn_Click(Object sender, EventArgs e)
Label2.Text ="Correct";
Label2.Text ="InCorrect";
<mobile:Form runat="server">
<mobile:Panel id="panel1" runat="server" Font-Bold="true">
<mobile:Label id="Label1" runat="server">
Name Capital of India
<mobile:TextBox runat="server" id ="TextBox1"/>
<mobile:Command runat="server" id="Button" OnClick="SubmitBtn_Click"> Lock It
<mobile:Panel id="panel2" visible="false" runat="server" Font-Italic="true">
mobile:Label id="Label2" runat="server"/>
// Source Code End

Similar Articles