|
Hello Guys
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: CS0117: 'ASP.Complaint_Form_aspx' does not contain a definition for 'PrintButton'
Source Error:
Line 106: Line 107:
Line 108: <asp:imagebutton id="printBtn" imageurl="../BTN/print.gif" alternatetext="Print" imagealign="top" onclick="PrintButton" runat="server">Line 109: Line 110:
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Complaint Form.aspx Line: 108
===================
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: CS0116: A namespace does not directly contain members such as fields or methods
Source Error:
Line 23:
Line 24: //build id
Line 25: ID= select MAX(COM_ID) FROM COMPLAINT;
Line 26: dCmd1 = new suggestionCMD(strSQL1, dbConn);
Line 27: if (id=0) then {
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Complaint Process.aspx
===============================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
Source Error:
Line 117: Line 118: Description: Line 119: <asp:textbox id="description" textmode="MultiLine" wrap="true" columns="30" rows="3" maxlength="100" autopostback="false" runat="server">
Line 120: <asp:requiredfieldvalidator id="vldDes" runat="server"
line="" 121:="" controltovalidate=" txtDesc " display="Dynamic" errormessage="You must enter Description." text="*">
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Form.aspx Line: 119
===========================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The 'Newspace' attribute is not supported by the 'Import' directive.
Source Error:
Line 2: <%@ Import Namespace="System" %>
Line 3: <%@ Import Namespace="System.Data" %>
Line 4: <%@ Import Newspace="System.Data.SqlClient" %>
Line 5:
Line 6: session["login"]=username
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Process.aspx Line: 4
=========================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: 'vsSummary"' is not a valid identifier.
Source Error:
Line 120: <th height="24" colspan="2">Line 121: <span class="style15">
Line 122: <asp:ValidationSummary DisplayMode="BulletList" HeaderText="The following errors happened:" ID=vsSummary" runat="server" />
Line 123: </span> </tr>Line 124: </table>
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Category Form.aspx Line: 122
|
|
|
|
|
Hello Guys,
how are you, hope you are fine?
Please please give me a fever in the following codes using C#:
//build id
ID= select MAX(COM_ID) FROM COMPLAINT;
dCmd1 = new suggestionCMD(strSQL1, dbConn);
if (id=0) then {
id +=1;
dCmd2 = insert into COMPLAINT (COM_ID, "COM_TITLE", "COM_DESC", "COM_STATUS","COM_REASON_DESC", COM_USER_ID, COM_DATE, COM_A_ID, COM_Updated_On);
}
dCmd.ExecuteNoneQuery();
IF (strSQL1+=0 || strSQL1 >0){
strSQL1 = strSQL1+1;
}
void InsertCommand(object sender, System.EventArgs e){
suggestionCon CMDConnection;
CMDConnection = new suggestionCon("Server=localhost;
uid=sarah;pwd=sarah;database=suggestion");
suggestionCMD CMD;
CMD = new suggestionCMD("Insert Into COMPLAINT (Title, Description) Values (COM_TITLE, COM_DESC )", CMDConnection);
CMD.Parameters.Add("COM_TITLE", suggestion.Varchar2, 30). Value = InsertTitle.Text;
CMD.Parameters.Add("COM_DESC", suggestionDbType.Varchar2, 100). Value = InsertDescription.Text;
CMDConnection.Open();
CMD.ExecuteNonQuary();
CMDConnection.Close();
LoadData();
}
void PrintButton(){
// Set the page margins
Rectangle rPageMargins = new Rectangle(e.MarginBounds.Location,
e.MarginBounds.Size);
// Generate the offset origins for the printing window
Point[] ptOffsets = GeneratePrintingOffsets(rPageMargins);
// Make sure nothing gets printed in the margins
e.Graphics.SetClip(rPageMargins);
// Draw the rest of the Form using the calculated offsets
Point ptOffset = new Point(-ptOffsets[_iCurrentPageIndex].X,
-ptOffsets[_iCurrentPageIndex].Y);
ptOffset.Offset(rPageMargins.X, rPageMargins.Y);
DrawForm(e.Graphics, ptOffset);
// Determine if there are more pages
e.HasMorePages = (_iCurrentPageIndex < ptOffsets.Length - 1);
_iCurrentPageIndex++;
}
Regards,
Saif :\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Complaint Form.aspx Line: 108
===================
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: CS0116: A namespace does not directly contain members such as fields or methods
Source Error:
Line 23:
Line 24: //build id
Line 25: ID= select MAX(COM_ID) FROM COMPLAINT;
Line 26: dCmd1 = new suggestionCMD(strSQL1, dbConn);
Line 27: if (id=0) then {
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Complaint Process.aspx
===============================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
Source Error:
Line 117: Line 118: Description: Line 119: <asp:textbox id="description" textmode="MultiLine" wrap="true" columns="30" rows="3" maxlength="100" autopostback="false" runat="server">
Line 120: <asp:requiredfieldvalidator id="vldDes" runat="server"
line="" 121:="" controltovalidate=" txtDesc " display="Dynamic" errormessage="You must enter Description." text="*">
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Form.aspx Line: 119
===========================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The 'Newspace' attribute is not supported by the 'Import' directive.
Source Error:
Line 2: <%@ Import Namespace="System" %>
Line 3: <%@ Import Namespace="System.Data" %>
Line 4: <%@ Import Newspace="System.Data.SqlClient" %>
Line 5:
Line 6: session["login"]=username
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Process.aspx Line: 4
=========================
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: 'vsSummary"' is not a valid identifier.
Source Error:
Line 120: <th height="24" colspan="2">Line 121: <span class="style15">
Line 122: <asp:ValidationSummary DisplayMode="BulletList" HeaderText="The following errors happened:" ID=vsSummary" runat="server" />
Line 123: </span> </tr>Line 124: </table>
Source File: C:\Inetpub\wwwroot\ALL PARTS\SuggestionSystemProject\Users\Inquiry Category Form.aspx Line: 122
Regards,
Saif
|
|
|
|