⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.aspx.cs

📁 本程序只要配置好IIS就可以直接使用,是一个在线网上考试系统
💻 CS
📖 第 1 页 / 共 5 页
字号:

				this.timu10.Text=ds.Tables[0].Rows[9]["S_question"].ToString();
				this.timu10text1.Text=ds.Tables[0].Rows[9]["S_text1"].ToString();
				this.timu10text2.Text=ds.Tables[0].Rows[9]["S_text2"].ToString();
				this.timu10text3.Text=ds.Tables[0].Rows[9]["S_text3"].ToString();
				this.timu10text4.Text=ds.Tables[0].Rows[9]["S_text4"].ToString();
				this.timu10daan.Text=ds.Tables[0].Rows[9]["S_answer"].ToString().Trim();
				this.timu10fenshu.Text=ds.Tables[0].Rows[9]["S_mark"].ToString().Trim();

				this.timu11.Text=ds.Tables[0].Rows[10]["S_question"].ToString();
				this.timu11text1.Text=ds.Tables[0].Rows[10]["S_text1"].ToString();
				this.timu11text2.Text=ds.Tables[0].Rows[10]["S_text2"].ToString();
				this.timu11text3.Text=ds.Tables[0].Rows[10]["S_text3"].ToString();
				this.timu11text4.Text=ds.Tables[0].Rows[10]["S_text4"].ToString();
				this.timu11daan.Text=ds.Tables[0].Rows[10]["S_answer"].ToString().Trim();
				this.timu11fenshu.Text=ds.Tables[0].Rows[10]["S_mark"].ToString().Trim();

				this.timu12.Text=ds.Tables[0].Rows[11]["S_question"].ToString();
				this.timu12text1.Text=ds.Tables[0].Rows[11]["S_text1"].ToString();
				this.timu12text2.Text=ds.Tables[0].Rows[11]["S_text2"].ToString();
				this.timu12text3.Text=ds.Tables[0].Rows[11]["S_text3"].ToString();
				this.timu12text4.Text=ds.Tables[0].Rows[11]["S_text4"].ToString();
				this.timu12daan.Text=ds.Tables[0].Rows[11]["S_answer"].ToString().Trim();
				this.timu12fenshu.Text=ds.Tables[0].Rows[11]["S_mark"].ToString().Trim();

				this.timu13.Text=ds.Tables[0].Rows[12]["S_question"].ToString();
				this.timu13text1.Text=ds.Tables[0].Rows[12]["S_text1"].ToString();
				this.timu13text2.Text=ds.Tables[0].Rows[12]["S_text2"].ToString();
				this.timu13text3.Text=ds.Tables[0].Rows[12]["S_text3"].ToString();
				this.timu13text4.Text=ds.Tables[0].Rows[12]["S_text4"].ToString();
				this.timu13daan.Text=ds.Tables[0].Rows[12]["S_answer"].ToString().Trim();
				this.timu13fenshu.Text=ds.Tables[0].Rows[12]["S_mark"].ToString().Trim();

				this.timu14.Text=ds.Tables[0].Rows[13]["S_question"].ToString();
				this.timu14text1.Text=ds.Tables[0].Rows[13]["S_text1"].ToString();
				this.timu14text2.Text=ds.Tables[0].Rows[13]["S_text2"].ToString();
				this.timu14text3.Text=ds.Tables[0].Rows[13]["S_text3"].ToString();
				this.timu14text4.Text=ds.Tables[0].Rows[13]["S_text4"].ToString();
				this.timu14daan.Text=ds.Tables[0].Rows[13]["S_answer"].ToString().Trim();
				this.timu14fenshu.Text=ds.Tables[0].Rows[13]["S_mark"].ToString().Trim();

				this.timu15.Text=ds.Tables[0].Rows[14]["S_question"].ToString();
				this.timu15text1.Text=ds.Tables[0].Rows[14]["S_text1"].ToString();
				this.timu15text2.Text=ds.Tables[0].Rows[14]["S_text2"].ToString();
				this.timu15text3.Text=ds.Tables[0].Rows[14]["S_text3"].ToString();
				this.timu15text4.Text=ds.Tables[0].Rows[14]["S_text4"].ToString();
				this.timu15daan.Text=ds.Tables[0].Rows[14]["S_answer"].ToString().Trim();
				this.timu15fenshu.Text=ds.Tables[0].Rows[14]["S_mark"].ToString().Trim();

				this.timu16.Text=ds.Tables[0].Rows[15]["S_question"].ToString();
				this.timu16text1.Text=ds.Tables[0].Rows[15]["S_text1"].ToString();
				this.timu16text2.Text=ds.Tables[0].Rows[15]["S_text2"].ToString();
				this.timu16text3.Text=ds.Tables[0].Rows[15]["S_text3"].ToString();
				this.timu16text4.Text=ds.Tables[0].Rows[15]["S_text4"].ToString();
				this.timu16daan.Text=ds.Tables[0].Rows[15]["S_answer"].ToString().Trim();
				this.timu16fenshu.Text=ds.Tables[0].Rows[15]["S_mark"].ToString().Trim();

				this.timu17.Text=ds.Tables[0].Rows[16]["S_question"].ToString();
				this.timu17text1.Text=ds.Tables[0].Rows[16]["S_text1"].ToString();
				this.timu17text2.Text=ds.Tables[0].Rows[16]["S_text2"].ToString();
				this.timu17text3.Text=ds.Tables[0].Rows[16]["S_text3"].ToString();
				this.timu17text4.Text=ds.Tables[0].Rows[16]["S_text4"].ToString();
				this.timu17daan.Text=ds.Tables[0].Rows[16]["S_answer"].ToString().Trim();
				this.timu17fenshu.Text=ds.Tables[0].Rows[16]["S_mark"].ToString().Trim();

				this.timu18.Text=ds.Tables[0].Rows[17]["S_question"].ToString();
				this.timu18text1.Text=ds.Tables[0].Rows[17]["S_text1"].ToString();
				this.timu18text2.Text=ds.Tables[0].Rows[17]["S_text2"].ToString();
				this.timu18text3.Text=ds.Tables[0].Rows[17]["S_text3"].ToString();
				this.timu18text4.Text=ds.Tables[0].Rows[17]["S_text4"].ToString();
				this.timu18daan.Text=ds.Tables[0].Rows[17]["S_answer"].ToString().Trim();
				this.timu18fenshu.Text=ds.Tables[0].Rows[17]["S_mark"].ToString().Trim();

				this.timu19.Text=ds.Tables[0].Rows[18]["S_question"].ToString();
				this.timu19text1.Text=ds.Tables[0].Rows[18]["S_text1"].ToString();
				this.timu19text2.Text=ds.Tables[0].Rows[18]["S_text2"].ToString();
				this.timu19text3.Text=ds.Tables[0].Rows[18]["S_text3"].ToString();
				this.timu19text4.Text=ds.Tables[0].Rows[18]["S_text4"].ToString();
				this.timu19daan.Text=ds.Tables[0].Rows[18]["S_answer"].ToString().Trim();
				this.timu19fenshu.Text=ds.Tables[0].Rows[18]["S_mark"].ToString().Trim();

				this.timu20.Text=ds.Tables[0].Rows[19]["S_question"].ToString();
				this.timu20text1.Text=ds.Tables[0].Rows[19]["S_text1"].ToString();
				this.timu20text2.Text=ds.Tables[0].Rows[19]["S_text2"].ToString();
				this.timu20text3.Text=ds.Tables[0].Rows[19]["S_text3"].ToString();
				this.timu20text4.Text=ds.Tables[0].Rows[19]["S_text4"].ToString();
				this.timu20daan.Text=ds.Tables[0].Rows[19]["S_answer"].ToString().Trim();
				this.timu20fenshu.Text=ds.Tables[0].Rows[19]["S_mark"].ToString().Trim();
			}
		}

		#region Web 窗体设计器生成的代码
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.Button39.Click += new System.EventHandler(this.Button39_Click);
			this.Button41.Click += new System.EventHandler(this.Button41_Click);
			this.Button42.Click += new System.EventHandler(this.Button42_Click);
			this.Button43.Click += new System.EventHandler(this.Button43_Click);
			this.Button44.Click += new System.EventHandler(this.Button44_Click);
			this.Button45.Click += new System.EventHandler(this.Button45_Click);
			this.Button46.Click += new System.EventHandler(this.Button46_Click);
			this.Button47.Click += new System.EventHandler(this.Button47_Click);
			this.Button48.Click += new System.EventHandler(this.Button48_Click);
			this.Button49.Click += new System.EventHandler(this.Button49_Click);
			this.Button50.Click += new System.EventHandler(this.Button50_Click);
			this.Button51.Click += new System.EventHandler(this.Button51_Click);
			this.Button52.Click += new System.EventHandler(this.Button52_Click);
			this.Button53.Click += new System.EventHandler(this.Button53_Click);
			this.Button54.Click += new System.EventHandler(this.Button54_Click);
			this.Button55.Click += new System.EventHandler(this.Button55_Click);
			this.Button56.Click += new System.EventHandler(this.Button56_Click);
			this.Button57.Click += new System.EventHandler(this.Button57_Click);
			this.Button58.Click += new System.EventHandler(this.Button58_Click);
			this.Button59.Click += new System.EventHandler(this.Button59_Click);
			this.Button1.Click += new System.EventHandler(this.Button1_Click);
			this.Button60.Click += new System.EventHandler(this.Button60_Click);
			this.Button4.Click += new System.EventHandler(this.Button4_Click);
			this.Button3.Click += new System.EventHandler(this.Button3_Click);
			this.Button61.Click += new System.EventHandler(this.Button61_Click);
			this.Button6.Click += new System.EventHandler(this.Button6_Click);
			this.Button5.Click += new System.EventHandler(this.Button5_Click);
			this.Button62.Click += new System.EventHandler(this.Button62_Click);
			this.Button8.Click += new System.EventHandler(this.Button8_Click);
			this.Button7.Click += new System.EventHandler(this.Button7_Click);
			this.Button63.Click += new System.EventHandler(this.Button63_Click);
			this.Button10.Click += new System.EventHandler(this.Button10_Click);
			this.Button9.Click += new System.EventHandler(this.Button9_Click);
			this.Button64.Click += new System.EventHandler(this.Button64_Click);
			this.Button12.Click += new System.EventHandler(this.Button12_Click);
			this.Button11.Click += new System.EventHandler(this.Button11_Click);
			this.Button65.Click += new System.EventHandler(this.Button65_Click);
			this.Button14.Click += new System.EventHandler(this.Button14_Click);
			this.Button13.Click += new System.EventHandler(this.Button13_Click);
			this.Button66.Click += new System.EventHandler(this.Button66_Click);
			this.Button16.Click += new System.EventHandler(this.Button16_Click);
			this.Button15.Click += new System.EventHandler(this.Button15_Click);
			this.Button67.Click += new System.EventHandler(this.Button67_Click);
			this.Button18.Click += new System.EventHandler(this.Button18_Click);
			this.Button17.Click += new System.EventHandler(this.Button17_Click);
			this.Button68.Click += new System.EventHandler(this.Button68_Click);
			this.Button20.Click += new System.EventHandler(this.Button20_Click);
			this.Button19.Click += new System.EventHandler(this.Button19_Click);
			this.Button69.Click += new System.EventHandler(this.Button69_Click);
			this.Button22.Click += new System.EventHandler(this.Button22_Click);
			this.Button21.Click += new System.EventHandler(this.Button21_Click);
			this.Button70.Click += new System.EventHandler(this.Button70_Click);
			this.Button24.Click += new System.EventHandler(this.Button24_Click);
			this.Button23.Click += new System.EventHandler(this.Button23_Click);
			this.Button71.Click += new System.EventHandler(this.Button71_Click);
			this.Button26.Click += new System.EventHandler(this.Button26_Click);
			this.Button25.Click += new System.EventHandler(this.Button25_Click);
			this.Button72.Click += new System.EventHandler(this.Button72_Click);
			this.Button28.Click += new System.EventHandler(this.Button28_Click);
			this.Button27.Click += new System.EventHandler(this.Button27_Click);
			this.Button73.Click += new System.EventHandler(this.Button73_Click);
			this.Button30.Click += new System.EventHandler(this.Button30_Click);
			this.Button29.Click += new System.EventHandler(this.Button29_Click);
			this.Button74.Click += new System.EventHandler(this.Button74_Click);
			this.Button32.Click += new System.EventHandler(this.Button32_Click);
			this.Button31.Click += new System.EventHandler(this.Button31_Click);
			this.Button75.Click += new System.EventHandler(this.Button75_Click);
			this.Button34.Click += new System.EventHandler(this.Button34_Click);
			this.Button33.Click += new System.EventHandler(this.Button33_Click);
			this.Button76.Click += new System.EventHandler(this.Button76_Click);
			this.Button36.Click += new System.EventHandler(this.Button36_Click);
			this.Button35.Click += new System.EventHandler(this.Button35_Click);
			this.Button77.Click += new System.EventHandler(this.Button77_Click);
			this.Button38.Click += new System.EventHandler(this.Button38_Click);
			this.Button37.Click += new System.EventHandler(this.Button37_Click);
			this.Button78.Click += new System.EventHandler(this.Button78_Click);
			this.Button40.Click += new System.EventHandler(this.Button40_Click);
			this.Button79.Click += new System.EventHandler(this.Button79_Click);
			this.Button2.Click += new System.EventHandler(this.Button2_Click);
			// 
			// timer2
			// 
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void Button1_Click(object sender, System.EventArgs e)
		{
			this.timu2Table.Visible=true;
			this.timu1Table.Visible=false;
			
		}

		private void Button4_Click(object sender, System.EventArgs e)
		{
			this.timu2Table.Visible=false;
			this.timu1Table.Visible=true;
		}

		private void Button2_Click(object sender, System.EventArgs e)
		{
			if(this.timu1text1.Checked)
			{
				daan1="A";
			}
			if(this.timu1text2.Checked)
			{
				daan1="B";
			}
			if(this.timu1text3.Checked)
			{
				daan1="C";
			}
			if(this.timu1text4.Checked)
			{
				daan1="D";
			}
			if(daan1==this.timu1daan.Text)
			{
				fenshu=int.Parse(this.timu1fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu2text1.Checked)
			{
				daan2="A";
			}
			if(this.timu2text2.Checked)
			{
				daan2="B";
			}
			if(this.timu2text3.Checked)
			{
				daan2="C";
			}
			if(this.timu2text4.Checked)
			{
				daan2="D";
			}
			if(daan2==this.timu2daan.Text)
			{
				fenshu=int.Parse(this.timu2fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu3text1.Checked)
			{
				daan3="A";
			}
			if(this.timu3text2.Checked)
			{
				daan3="B";
			}
			if(this.timu3text3.Checked)
			{
				daan3="C";
			}
			if(this.timu3text4.Checked)
			{
				daan3="D";
			}
			if(daan3==this.timu3daan.Text)
			{
				fenshu=int.Parse(this.timu3fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu4text1.Checked)
			{
				daan4="A";
			}
			if(this.timu4text2.Checked)
			{
				daan4="B";
			}
			if(this.timu4text3.Checked)
			{
				daan4="C";
			}
			if(this.timu4text4.Checked)
			{
				daan4="D";
			}
			if(daan4==this.timu4daan.Text)
			{
				fenshu=int.Parse(this.timu4fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu5text1.Checked)
			{
				daan5="A";
			}
			if(this.timu5text2.Checked)
			{
				daan5="B";
			}
			if(this.timu5text3.Checked)
			{
				daan5="C";
			}
			if(this.timu5text4.Checked)
			{
				daan5="D";
			}
			if(daan5==this.timu5daan.Text)
			{
				fenshu=int.Parse(this.timu5fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu6text1.Checked)
			{
				daan6="A";
			}
			if(this.timu6text2.Checked)
			{
				daan6="B";
			}
			if(this.timu6text3.Checked)
			{
				daan6="C";
			}
			if(this.timu6text4.Checked)
			{
				daan6="D";
			}
			if(daan6==this.timu6daan.Text)
			{
				fenshu=int.Parse(this.timu6fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu7text1.Checked)
			{
				daan7="A";
			}
			if(this.timu7text2.Checked)
			{
				daan7="B";
			}
			if(this.timu7text3.Checked)
			{
				daan7="C";
			}
			if(this.timu7text4.Checked)
			{
				daan7="D";
			}
			if(daan7==this.timu7daan.Text)
			{
				fenshu=int.Parse(this.timu7fenshu.Text);
				sum=sum+fenshu;
			}

			if(this.timu8text1.Checked)
			{

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -