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