using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Problem2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//This is for the name portion of the program
if (Session["NameInTextBox"] != null)
Label1.Text = Session["NameInTextBox"].ToString();
else
Label1.Text = "not Registered";
//Start of number portion of assignment
if (Session["NumberInTextBox1"] != null)
Label5.Text = Session["NumberInTextBox1"].ToString();
else
Label5.Text = "Enter a number!";
}
protected void Button1_Click(object sender, EventArgs e)
{
Session["NumberInTextBox1"] = TextBox2.Text;
int var1 = 11;
if (TextBox2.Text == var1)
Console.WriteLine("This number is a magic number!");
}
}
This post has been edited by kkgaming: 30 January 2008 - 10:46 PM

New Topic/Question
Reply




MultiQuote





|