D
Dean Slindee
Would like to call the TabShow function on WebForm InOutHost from another
WebForm in same project, but cannot figure out how to get a reference. Can
this be done? In this statement: Call InOutHost.TabShow("pagBoard"), the
reference to InOutHost is not resolved. Thanks, Dean S
Partial Public Class InOutHost
Inherits System.Web.UI.Page
'function
Public Sub TabShow(ByVal strTabName As String)
Select Case strTabName
Case "pagSearch"
tabInOut.SelectedTab =
tabInOut.Tabs.IndexOf(tabInOut.Tabs.FromKey("pagSearch"))
Case "pagBoard"
tabInOut.SelectedTab =
tabInOut.Tabs.IndexOf(tabInOut.Tabs.FromKey("pagBoard"))
Case Else
'error message
End Select
End Sub
End Class
Partial Class Search
Inherits System.Web.UI.Page
Call InOutHost.TabShow("pagBoard")
End Class
WebForm in same project, but cannot figure out how to get a reference. Can
this be done? In this statement: Call InOutHost.TabShow("pagBoard"), the
reference to InOutHost is not resolved. Thanks, Dean S
Partial Public Class InOutHost
Inherits System.Web.UI.Page
'function
Public Sub TabShow(ByVal strTabName As String)
Select Case strTabName
Case "pagSearch"
tabInOut.SelectedTab =
tabInOut.Tabs.IndexOf(tabInOut.Tabs.FromKey("pagSearch"))
Case "pagBoard"
tabInOut.SelectedTab =
tabInOut.Tabs.IndexOf(tabInOut.Tabs.FromKey("pagBoard"))
Case Else
'error message
End Select
End Sub
End Class
Partial Class Search
Inherits System.Web.UI.Page
Call InOutHost.TabShow("pagBoard")
End Class