Errors in ascx control when getting ModuleID()

25 views Asked by At

In Visual Studio I've been always getting the following errors when getting ModuleID in ascx, but the module compiles successfully. Any ideas how to fix these issues?

This is how I register the ascx:

 <%@ Control Language="vb" AutoEventWireup="true" CodeBehind="View.ascx.vb" Inherits="Christoc.Modules.babyList.View" %>

enter image description here

1

There are 1 answers

0
atabrizi On

Try this code to access your Moduleid in ascx file

<%= ModuleId %>