PDA

View Full Version : The name 'name' is not permitted in this context



faramarz_s
شنبه 29 شهریور 1382, 10:56 صبح
Server Error in '/Merat' Application.
--------------------------------------------------------------------------------

The name 'name' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.
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: The name 'name' is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.

Source Error:


Line 83:
Line 84: myCommand.Connection.Open();
Line 85: myCommand.ExecuteNonQuery();

Vahid_Nasiri
شنبه 29 شهریور 1382, 15:41 عصر
این خطا به خطوط قبلی کد شما در قسمت تعریف کوئری مربوط می شود. لطفا ...... :roll: