|
I have no idea what may cause this error I have been getting.
One time I build my website, it is ok, the next, it throws two or three errors, saying that BusinessAreaTemplate is Ambiguous.
What is "Ambiguous"
The error seems to be based in my VB code part of my site.
Any help would be great....I have included some code, Really, I was just wondering if anyone had ran into this problem before.
Partial Class BusinessAreaTemplateConfirmation Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer. <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub
#End Region
Public sourcePage As BusinessAreaTemplate
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
'loginInfo = DirectCast(Session.Item(Constants.SessionLoginInfo), LoginInfo)
Dim loginInfo As New LoginInfo Navigation.UserName = loginInfo.GetUserName
If Not loginInfo.IsUserAuthToViewPage(Request.Url.LocalPath) Then Response.Redirect("NotAuthorized.aspx")
sourcePage = DirectCast(Context.Handler, BusinessAreaTemplate) Dim templateName As String = sourcePage.TemplateName lblStatus.Text = String.Format("{0} saved to the database. Click <a href=BusinessAreaTemplate.aspx>here</a> to add new template.", templateName)
End If
End Sub
End Class
|