Last post Jul 29, 2008 03:46 PM by lubatico
Jul 28, 2008 10:51 AM|lubatico|LINK
I've wrote a module but then had to change the namespace structure. It seemed fine, but some of the files are giving me errors and, quite honestly, I don't know enough about them to change them so much.
The old namespace was UNDSS_TravelAdvisory.modules.TravelAdvisory and was changed to UNDSS.Modules.TravelAdvisory (which I thought was more logical).
Can anyone please help? Many thanks!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Determine ItemId of TravelAdvisory_CountrySelect to Update
If Not (Request.QueryString("ItemId") Is Nothing) Then
ItemId = Int32.Parse(Request.QueryString("ItemId"))
' If this is the first visit to the page, bind the role data to the datalist
If Page.IsPostBack = False Then
If Not Common.Utilities.Null.IsNull(ItemId) Then
' get content
Dim objTravelAdvisory_CountrySelects As New UNDSS.Modules.TravelAdvisory_CountrySelect.EditTravelAdvisory_CountrySelect.TravelAdvisory_CountrySelectController
Dim objTravelAdvisory_CountrySelect As UNDSS.Modules.TravelAdvisory_CountrySelect.EditTravelAdvisory_CountrySelect.TravelAdvisory_CountrySelectInfo = objTravelAdvisory_CountrySelects.GetTravelAdvisory_CountrySelect(ModuleId, ItemId)
If Not objTravelAdvisory_CountrySelect Is Nothing Then
txtContent.Text = objTravelAdvisory_CountrySelect.Content
ctlAudit.CreatedByUser = objTravelAdvisory_CountrySelect.CreatedByUser.ToString
ctlAudit.CreatedDate = objTravelAdvisory_CountrySelect.CreatedDate.ToString
Else ' security violation attempt to access item not related to this Module
cmdDelete.Visible = False
ctlAudit.Visible = False
Catch exc As Exception 'Module failed to load
Jul 29, 2008 11:08 AM|BlueJam|LINK
Did you create new code files ?
Might be worth checking if the Build Action on the new files is set to 'Compile' (Right Click on the file -> Properties)
Jul 29, 2008 03:46 PM|lubatico|LINK
I found the problem.
I had forgotten to change the App_code files of the module.
Now, everything is ok.