Urgent Help - Error loading user control

G

Guest

Hi,

I need some urgent help and your help is very much appreciated.

I have a control in a directory named components and I am trying to load
that control and add it to the page and when I run the web site locally it's
ok but when I try to publish the web site then I get the following error:

Error 1 Type 'ASP.components_jobs_ascx' is not
defined. C:\Projects\TPP\pages\jobs.aspx.vb 240

------------------

The web user control is called jobs.ascx and it is located on the components
directory

the class is components_jobs

------------------

The code that I have on the page is this:

Private Function GetJobControl(ByVal CandID As Integer, ByVal JobID As
Integer) As UserControl

Dim Jobs1 As ASP.components_jobs_ascx =
LoadControl("~/components/jobs.ascx")
Jobs1.CandID = CandID
Jobs1.JobID = JobID
Jobs1.RPT = RPT
Return Jobs1

End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top