זה יותר בעיה בC#...
אני מנסה להוסיף עוד רשומה למסד וזה לא עובד...:
קוד:
protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
{
//קישור ל-DB
SqlConnection conn = new SqlConnection(
ConfigurationManager.ConnectionStrings["dbConnectionString"].ConnectionString);
conn.Open();
//להגידר שאילתה ב-SQL
string DwdID = Request.QueryString["dID"];
string Date = DateTime.Today.ToString();
string UserName = User.Identity.Name;
string SqlStr = "INSERT INTO Comments(CommTitle, CommText, CommDate, DwdNum, WroteBy) VALUES (txtTitle.text, txtText.text, Date, DwdID, UserName)";
SqlCommand cmd = new SqlCommand(SqlStr, conn);
conn.Close();
}