locked
UIProcess - Name 'Controller' is not declared RRS feed

  • Question

  • User-612973152 posted

    I have created a new Web User Control (ASCX) in an existing web project (1.1 version). I placed a linkbutton and I am trying to assign Link to it using the code below

       Private Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
            DirectCast(Controller, MyController).LinkToNew()
        End Sub
    
    Public Class MyUsrControl
        Inherits UsrCtrlBtm
    
    Public Class UsrCtrlBtm
        Inherits System.Web.UI.UserControl
     

    Error:
    Name 'Controller' is not declared.

    When I look at Controller in "Object Browser"
    WebFormView
    --
       Controller() As Microsoft.ApplicationBlocks.UIProcess.ControllerBase

    Anyone can help??

    Thanks

    Thursday, June 4, 2009 4:56 PM

All replies