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:
|
" codeBody "
" notpretty " protected nietige Button1_Click (objecten afzender, EventArgs e)
{
koord sql = "";
var Com = nieuwe SqlCommand ();
sql +=
„TUSSENVOEGSEL IN (XTV7_VVR_Time_Start, XTV7_VVR_Time_Close, XTV7_UserName, XTV7_Videos_ID) Waarden Xtrain.XTV7_3_Video_View (@XTV7_VVR_Time_Start, @XTV7_VVR_Time_Close, @XTV7_UserName, @XTV7_Videos_ID)“;
//Geek.XTV7_VidReg;
Com. Parameters.Add („@XTV7_VVR_Time_Start“, SqlDbType.DateTime). Waarde = DateTime.Parse (lblVidReg.Text);
Com. Parameters.Add („@XTV7_VVR_Time_Close“, SqlDbType.DateTime). Waarde = DateTime.Parse (DateTime.Now.ToString ());
Com. Parameters.Add („@XTV7_UserName“, SqlDbType.NVarChar). Waarde = HttpContext.Current.User.Identity.Name.ToString ();
Com. Parameters.Add („@XTV7_Videos_ID“, SqlDbType.Int). Waarde = Int32.Parse (Geek.XTV7_Videos_ID.ToString ());
probeer
{
data.ExecuteNonQuery (sql, Com);
}
vangst (ex Uitzondering)
{
koord manuscript = „ ";
Page.RegisterStartupScript („fout“, manuscript);
}
ClientScript.RegisterStartupScript (Page.GetType (), „mykey“, „CloseAndRebind (); “, waar);
koord scriptreturn = „“;
ClientScript.RegisterStartupScript (GetType (), „richt“, scriptreturn opnieuw, vals);
}
|