Incorrect syntax near
.ده الكود والمشكلة فى ايه
Protected Sub Page_Load
(ByVal sender As Object ByVal e As System.EventArgs) Handles Me.Load
cn.ConnectionString ConfigurationManager.ConnectionStrings
(quotGiftsShoopConnectionStringquot).ConnectionString
cn.Open()
cmd.Connection
cn
cmd.CommandText
quotinsert into Categories
(CategoryNameCategoryImageActiveCategoryDisc)
values (@CategoryName@CategoryImage@Active@CategoryDisc)
cmd.Parameters.AddWithValue
(quot@CategoryNamequot txt_Category.Text)
cmd.Parameters.AddWithValue
(quot@CategoryImagequot File_Image.FileName)
cmd.Parameters.AddWithValue
(quot@Activequot chk_Active.Checked)
cmd.Parameters.AddWithValue(quot@CategoryDiscquot
txt_CategoryDisc.Text)
cmd.ExecuteNonQuery() End Sub