11-03-2007, 09:14
|
|
|
חבר מתאריך: 29.07.06
הודעות: 2
|
|
שגיאה ב C# ASP.NET
שלום
אני מקבל שגיאה ב C# לקוד
מה שמסומן כשגיאה הוא ה Common (שהוא DLL) בשורה
public Common.TypedDataSets.WebCAMDataSet.tblWebCamAttach mentDataTable GetGetAttachmentByCallID(int CallID)
אם אני מוריד את הבנאי אין את השגיאה
Error 2 Expected class, delegate, enum, interface, or struct
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace LogicalLayer.ObjectDataSources
{
publicclassClassAttachment
{
public ClassAttachment()
{
if (HttpContext.Current.Session(LogicalLayer.Enums.GlobalEnums.SessionKeys.WebCamdtAttach()) == null) {
HttpContext.Current.Session(LogicalLayer.Enums.GlobalEnums.SessionKeys.WebCamdtAttach.ToString()) = new Common.TypedDataSets.WebCAMDataSet.tblWebCamAttachmentDataTable() ;
}
}
}
public Common.TypedDataSets.WebCAMDataSet.tblWebCamAttach mentDataTable GetGetAttachmentByCallID(int CallID)
{
Common.TypedDataSets.WebCAMDataSet.tblWebCamAttach mentDataTable tblWebCamAttachmentDataTable = new Common.TypedDataSets.WebCAMDataSet.tblWebCamAttach mentDataTable();
LogicalLayer.ServiceClients.WebCAMServiceClient myWebCAMService = new LogicalLayer.ServiceClients.WebCAMServiceClient();
tblWebCamAttachmentDataTable.Merge(myWebCAMService .GetAttachmentByCallID(CallID).Tables[0]);
return tblWebCamAttachmentDataTable;
}
}
תודה מראש
גדי}
|