-
Notifications
You must be signed in to change notification settings - Fork 0
/
FQ.aspx.cs
47 lines (45 loc) · 1.08 KB
/
FQ.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class FQ : System.Web.UI.Page
{
TaskManager ts = new TaskManager();
TaskManager.QC qu;
protected void Page_Load(object sender, EventArgs e)
{
int pid=Int32.Parse(Session["PID"].ToString());
qu = ts.getQus(pid, 0, "M");
Label1.Text = qu.qu;
}
protected void Button1_Click(object sender, EventArgs e)
{
Session["PAID"] = qu.id;
if(RadioButton1.Checked)
{
Session["ANS"] = "Y";
if(qu.isy==0)
{
Response.Redirect("RestQ.aspx");
}
else
{
Response.Redirect("ShowSol.aspx");
}
}
else
{
Session["ANS"] = "N";
if (qu.isn == 0)
{
Response.Redirect("RestQ.aspx");
}
else
{
Response.Redirect("ShowSol.aspx");
}
}
}
}