D
Dean Slindee
Can one webform reference another webform in the same project? I would like
WebformB to tell WebformA to change the selected tab on a tabcontrol sited
on WebformA.
If not possible, please, just reply it's not possible.
Example: Call WebformA.TabShow("pagBoard"), the
reference to WebformA is not resolved. Thanks, Dean S
Partial Public Class WebformA
Inherits System.Web.UI.Page
'function in WebformA:
Public Sub TabShow(ByVal strTabName As String)
Select Case strTabName
Case "pagSearch"
tab.SelectedTab =
tab.Tabs.IndexOf(tab.Tabs.FromKey("pagSearch"))
Case "pagBoard"
tab.SelectedTab =
tab.Tabs.IndexOf(tab.Tabs.FromKey("pagBoard"))
Case Else
'error message
End Select
End Sub
End Class
Partial Class WebformB
Inherits System.Web.UI.Page
Call WebformA.TabShow("pagBoard")
End Class
WebformB to tell WebformA to change the selected tab on a tabcontrol sited
on WebformA.
If not possible, please, just reply it's not possible.
Example: Call WebformA.TabShow("pagBoard"), the
reference to WebformA is not resolved. Thanks, Dean S
Partial Public Class WebformA
Inherits System.Web.UI.Page
'function in WebformA:
Public Sub TabShow(ByVal strTabName As String)
Select Case strTabName
Case "pagSearch"
tab.SelectedTab =
tab.Tabs.IndexOf(tab.Tabs.FromKey("pagSearch"))
Case "pagBoard"
tab.SelectedTab =
tab.Tabs.IndexOf(tab.Tabs.FromKey("pagBoard"))
Case Else
'error message
End Select
End Sub
End Class
Partial Class WebformB
Inherits System.Web.UI.Page
Call WebformA.TabShow("pagBoard")
End Class