-
Notifications
You must be signed in to change notification settings - Fork 2
/
SubmitMyThesis.aspx.cs
52 lines (40 loc) · 1.47 KB
/
SubmitMyThesis.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
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Security.Cryptography;
using System.Web;
using System.Web.Configuration;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Windows;
namespace marco
{
public partial class SubmitMyThesis : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Submit(object sender, EventArgs e)
{
string connStr = WebConfigurationManager.ConnectionStrings["test"].ToString();
SqlConnection conn = new SqlConnection(connStr);
int s_id = Int16.Parse(SID.Text);
int title1 = Int16.Parse(title.Text);
String PDF_Document = pdf.Text;
SqlCommand lecsignup = new SqlCommand("SubmitMyThesis", conn);
lecsignup.CommandType = CommandType.StoredProcedure;
DateTime d = new DateTime(1753, 1, 1, 12, 0, 0);
Decimal dd = new Decimal(0.1);
int ii = 0;
lecsignup.Parameters.Add(new SqlParameter("@s_id", s_id));
lecsignup.Parameters.Add(new SqlParameter("@title", title1));
lecsignup.Parameters.Add(new SqlParameter("@PDF_Document", pdf));
conn.Open();
lecsignup.ExecuteNonQuery();
conn.Close();
Response.Write("done");
}
}
}