PDA

View Full Version : تشخیص نوع عنصر



faramarz_s
جمعه 28 شهریور 1382, 21:18 عصر
این چه عنصری است؟

Message.InnerHtml

Message.Style["color"] = "red";

Message.InnerHtml = "ERROR: Could not add record, please " +
" ensure the fields are correctly filled out";


Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 100: {
Line 101: myCommand.ExecuteNonQuery();
Line 102: Message.InnerHtml = "<b>Record Added</b><br>" + insertCmd;
Line 103: }
Line 104: catch (SqlException e)

Vahid_Nasiri
شنبه 29 شهریور 1382, 00:59 صبح
'Message' could not be found
یعنی اینکه اگر کپ می زنید کامل کپ بزنید!
شیء Message در کد اصلی کجا تعریف شده بود؟ :wink: