13-10-15, 12:48 PM
السلام عليكم ورحمة الله وبركاته
قمت بإنشاء صفحة ويب عن طريق فيجوال ستديو 2010 وتضممن جدول به الحقول التالية
ID ------------------------ primary key
first name
last name
email
وعملية ادخال البيانات تتم بصورة صحيحة عن طريق المتصفح ولكن عندما عمل Gridview وقمت برابطها بالقاعدة البيانات العرض تظهر جميع الحقول مع البيانات
ولكن في عملية update تظهر لي هذه الرسالة
Incorrect syntax near 'nvarchar'.
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.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.
Source Error:
قمت بإنشاء صفحة ويب عن طريق فيجوال ستديو 2010 وتضممن جدول به الحقول التالية
ID ------------------------ primary key
first name
last name
وعملية ادخال البيانات تتم بصورة صحيحة عن طريق المتصفح ولكن عندما عمل Gridview وقمت برابطها بالقاعدة البيانات العرض تظهر جميع الحقول مع البيانات
ولكن في عملية update تظهر لي هذه الرسالة
Incorrect syntax near 'nvarchar'.
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.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.
Source Error:
كود :
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.