class= " lineNumbers " do
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= do
o class= " do id= " codeSnippet691657 do protected Button1_Click vago (remetente do objeto, EventArgs e)
{
corda sql = "";
var COM = SqlCommand novo ();
sql +=
A “INSERÇÃO em Xtrain.XTV7_3_Video_View (XTV7_VVR_Time_Start, XTV7_VVR_Time_Close, XTV7_UserName, XTV7_Videos_ID) avalia (@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 ());
tentativa
{
data.ExecuteNonQuery (sql, COM);
}
prendedor (exceção ex)
{
amarrar o certificado = do “language= \ “Javascript \ “>alert ”;
ClientScript.RegisterStartupScript (GetType (), “reorienta”, scriptreturn, falsos);
}
|