-
Notifications
You must be signed in to change notification settings - Fork 2
/
MakePreferencesLocalProject.aspx.cs
53 lines (40 loc) · 1.53 KB
/
MakePreferencesLocalProject.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
53
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 MakePreferencesLocalProject : 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 PCode = Int16.Parse(PCOD.Text);
int PreferenceuNmber = Int16.Parse(PNUM.Text);
SqlCommand lecsignup = new SqlCommand("MakePreferencesLocalProject", 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("@PCode", PCode));
lecsignup.Parameters.Add(new SqlParameter("@PreferenceuNmber", PreferenceuNmber));
conn.Open();
lecsignup.ExecuteNonQuery();
conn.Close();
Response.Write("done");
}
}
}