如何编辑asp.NET网站的DLL文件

时间:2014-05-29 16:17:09

标签: asp.net vb.net dll

我正在开发一个网站,其中包含将条目上传到数据库的表单。我想添加一个名为“CreatedDate”的新字段,该字段将存储提交的日期。当我添加新字段时,我收到此错误:

  

编译器错误消息:BC30456:'CreatedDate'不是其成员   'AmsServices.Contacts'。

我的代码如下:

Try
            Dim objContat As Contacts = New Contacts()
            Dim dr As DataRow
            Dim i As Integer
            Dim MaxIDValue As String
            objContat.FirstName = Trim(txtFirstName.Text)
            objContat.LastName = Trim(txtLastName.Text)
            objContat.EmailAddress = Trim(txtEmailAddress.Text)
            objContat.PhoneNumber = Trim(txtPhoneNumber.Text)
            objContat.Company = Trim(txtCompany.Text)
            objContat.Address = Trim(txtAddress.Text)
            objContat.Address2 = Trim(txtAddress2.Text)
            objContat.City = Trim(txtFirstName.Text)
            objContat.State = Trim(ddListStates.SelectedItem.Text)
            objContat.ZipCode = Trim(txtZipCode.Text)
            objContat.Comments = Trim(txtComments.Text)
            objContat.DateCreated = Now()

            'added to store the created date
            objContat.CreatedDate = Now()

            objContat.Insert()

看起来Contacts()是一个带有预定义键的数组,而我的新字段'DateCreated'不是其中一个键。我将其跟踪到bin文件夹中名为AmsServices.dll的文件,其中似乎正在定义'Contacts()',但是当我在NotePad ++中打开文件时,我只能得到难以理解的乱码。以HEX打开文件要好一点,但我不知道如何编辑它。该文件看起来像这样:

<Module><nul>AmsServices.dll<nul>Command<nul>AmsServices<nul>ChangeAddress<nul>OneTimePaymentObj<nul>LossMitigationObject<nul>DataManager<nul>Parameter<nul>Contacts<nul>mscorlib<nul>System<nul>Object<nul>_sProcName<nul>System.Collections.Generic<nul>List`1<nul>_sProcParameters<nul>GetParameters<nul>GetName<nul>.ctor<nul>AddParameter<nul>_ID<nul>_FirstName<nul>_LastName<nul>_Address<nul>_Address2<nul>_City<nul>_State<nul>_ZipCode<nul>_PhoneNumber<nul>_MobilePhone<nul>_WorkPhone<nul>_OtherPhone<nul>_EmailAddress<nul>_Comments<nul>DateTime<nul>_DateCreated<nul>get_ID<nul>set_ID<nul>get_FirstName<nul>set_FirstName<nul>get_LastName<nul>set_LastName<nul>get_Address<nul>set_Address<nul>get_Address2<nul>set_Address2

我猜我需要在特殊程序中打开这个文件来编辑'Contacts()'的定义,但我不确定我需要使用哪个程序。任何人都可以就如何编辑这个文件给出一些指示吗?

由于

0 个答案:

没有答案