as salaam alykum,
i was trying to implement the above concept.
i am getting this error:
Error 22 'ListItem' is an ambiguous reference between 'System.Web.UI.WebControls.ListItem' and 'iTextSharp.text.ListItem' D:\11-4-12_fixed_19april12\11-4-12\11-4-12\KFHMedi\kfh\control\WOR.aspx.cs 69 47 D:\...\kfh\
Error 23 'ListItem' is an ambiguous reference between 'System.Web.UI.WebControls.ListItem' and 'iTextSharp.text.ListItem' D:\11-4-12_fixed_19april12\11-4-12\11-4-12\KFHMedi\kfh\control\WOR.aspx.cs 89 48 D:\...\kfh\
this is my code file:
i have underlined the line where i am getting this error
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObject;
using ExceptionalLogger;
using KFHDal;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data;
using System.IO;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.html.simpleparser;
using iTextSharp.text.pdf;
public partial class control_WOR : System.Web.UI.Page
{
Letter objletter = new Letter();
LetterDAL objLetterDAL = new LetterDAL();
WorkOrder objWO = new WorkOrder();
Work_OrderDAL obWODAL = new Work_OrderDAL();
Printing_Chief objpc = new Printing_Chief();
PrintingChiefDAL objpcdal = new PrintingChiefDAL();
MSDD objMSDD = new MSDD();
MSDDDAL objMSDDDAL = new MSDDDAL();
Proof1 objp1 = new Proof1();
Proof1DAL objp1dal = new Proof1DAL();
Remarks_on_Tech_Spec objrts = new Remarks_on_Tech_Spec();
Remarks_on_Tech_SpecDAL objrtsdal = new Remarks_on_Tech_SpecDAL();
protected void Page_Load(object sender, EventArgs e)
{
FillsMachnType();
FillpMachnType();
FilldMachnType();
FilloMachnType();
FilluMachnType();
getwovals();
GetmatreqDetails();
GetOSDetails();
GetTechSpec();
getproofsval();
gettsrval();
getpcvals();
getmsddvals();
getstival();
}
public void FillsMachnType()
{
try
{
DataSet dsnewsType = CommonMethods.GetDataByID("Category_Tbl", "cat_type_id", "5");
if (dsnewsType.Tables[0].Rows.Count > 0)
{
DdlSpiral.DataSource = dsnewsType;
DdlSpiral.DataTextField = "cat_type";
DdlSpiral.DataValueField = "cat_id";
DdlSpiral.DataBind();
DdlSpiral.Items.Insert(0, new ListItem("-Select-", "0"));
}
}
catch (Exception ex)
{
lblErrorStatus.Text = ex.Message;
}
}