ba salam
in error baraye chi hast va che jori rafe mishe
Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
Source Error:
Line 22: myOleDbCmd.Connection.Close()
Line 23: myOleDbCmd.Connection.Open()
Line 24: myOleDbCmd.ExecuteNonQuery()
Line 25: myOleDbCmd.Connection.Close()
Line 26:
|
من تنها یک صفحه aspxشامل همین فرم را هم در local هم در وب تست کردم دیتابیس هم پرمیشن داره در هر دو مورد این errorرو داد ولی در محیط visual web developer2005 بعد از یه پیام خطا برنامه اجرا و در دیتابیس داده insert شد من این مشکل رو قبلا در asp هم داشتم که با اضافه کردن <!--#include virtual="/adovbs.inc"--> این مشکل حل شد ولی در asp.net نمیدونم ؟
query
Dim SQL As String = "insert into sefareshweb(name,family,email,tel)values('" & name.Text.Trim & "','" & family.Text.Trim & "','" & email.Text.Trim & "','" & tel.Text.Trim & "')"