checkodd.asx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="checkodd.aspx.cs" Inherits="our_program.checkodd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>check odd or not</title>
<center><h1>check odd or not</h1></center>
</head>
<body>
<form id="form1" runat="server">
<center>
<div>
<asp:TextBox ID="txt" runat="server"></asp:TextBox>
<br />
<br />
<asp:Button ID="btn" runat="server" Text="Button" onclick="btn_Click" />
<br />
<br />
<asp:Label ID="lbl" runat="server" Text="result are shown here"></asp:Label>
</div>
</center>
</form>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="checkodd.aspx.cs" Inherits="our_program.checkodd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>check odd or not</title>
<center><h1>check odd or not</h1></center>
</head>
<body>
<form id="form1" runat="server">
<center>
<div>
<asp:TextBox ID="txt" runat="server"></asp:TextBox>
<br />
<br />
<asp:Button ID="btn" runat="server" Text="Button" onclick="btn_Click" />
<br />
<br />
<asp:Label ID="lbl" runat="server" Text="result are shown here"></asp:Label>
</div>
</center>
</form>
</body>
</html>
checkodd.asx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace our_program
{
public partial class checkodd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btn_Click(object sender, EventArgs e)
{
int n = Convert.ToInt16(txt.Text);
string output = "";
if (n % 2 == 1)
{
output = "The given number " + n + " is Odd";
}
else
{
output = "The given number " + n + " is not Odd";
}
lbl.Text = output;
}
}
}
Casinos Near Me - Chouteau Casino, Hotel & Spa in
ReplyDeleteChoose 인카지노 from 메리트 카지노 주소 our many exciting & affordable 카지노 gaming and entertainment options near you. You've come to the right place. Find your lucky charms today!
Mgm Casino and Sports Betting - Jtmhub
ReplyDeleteMgm Casino and Sports 김천 출장안마 Betting, a premier online gaming platform. 영천 출장샵 Providing sports betting, poker, casino games and slots, 서귀포 출장안마 bingo, 김포 출장안마 blackjack, 논산 출장마사지 roulette,