class= " lineNumbers " del
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:
|
class= del
el class= " del id= " codeSnippet691657 del protected Button1_Click vacío (remitente del objeto, EventArgs e)
{
secuencia sql = "";
var COM = nuevo SqlCommand ();
sql +=
El “PARTE MOVIBLE EN Xtrain.XTV7_3_Video_View (XTV7_VVR_Time_Start, XTV7_VVR_Time_Close, XTV7_UserName, XTV7_Videos_ID) valora (@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). Valor = DateTime.Parse (lblVidReg.Text);
COM. Parameters.Add (“@XTV7_VVR_Time_Close”, SqlDbType.DateTime). Valor = DateTime.Parse (DateTime.Now.ToString ());
COM. Parameters.Add (“@XTV7_UserName”, SqlDbType.NVarChar). Valor = HttpContext.Current.User.Identity.Name.ToString ();
COM. Parameters.Add (“@XTV7_Videos_ID”, SqlDbType.Int). Valor = Int32.Parse (Geek.XTV7_Videos_ID.ToString ());
intento
{
data.ExecuteNonQuery (sql, COM);
}
retén (excepción ex)
{
encadenar la escritura = language= \ “Javascript \ “>alert del “”;
ClientScript.RegisterStartupScript (GetType (), “vuelve a dirigir”, scriptreturn, falsos);
}
|