M
MagicKat
I have moved my class files out of my web site and into a separate project,
as recommended by other programmers. Now, however, I cannot reference
anything like a label or a master page. I have imported Microsoft.Visual
basic into the new project. What else am I missing?
For instance, every asp page in the main project uses the following
procedure, so I moved it to the shared project in order to share it. I have
errors on the master page and label reference. Now I have to move it back
so that the same procedure is in every page??? that doesn't seem very
efficient to me. Thank you for your help.
Public Sub SetMasterPage(Byval sPage as String, ByRef m as masterpage)
Dim lblPageHeading As Label
lblPageHeading = CType(m.FindControl("lblPageHeading"), Label)
If Not lblPageHeading Is Nothing Then
lblPageHeading.Text = sPage
End If
End Sub
as recommended by other programmers. Now, however, I cannot reference
anything like a label or a master page. I have imported Microsoft.Visual
basic into the new project. What else am I missing?
For instance, every asp page in the main project uses the following
procedure, so I moved it to the shared project in order to share it. I have
errors on the master page and label reference. Now I have to move it back
so that the same procedure is in every page??? that doesn't seem very
efficient to me. Thank you for your help.
Public Sub SetMasterPage(Byval sPage as String, ByRef m as masterpage)
Dim lblPageHeading As Label
lblPageHeading = CType(m.FindControl("lblPageHeading"), Label)
If Not lblPageHeading Is Nothing Then
lblPageHeading.Text = sPage
End If
End Sub