![]() |
|
|
|||||||
![]() |
ASP Net - Can web forms communicate with one another directly? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 Dean Slindee |
|
|
|
|
#2 |
|
Posts: n/a
|
Um... no... if your WebFormB had a static property for the selected tab
index, you could use that, but your pages aren't always there... they get instantiated and ripped down again when a user requests them, and besides if you did it that way, all your users would have the same selected tab, and I assume that's not what you wanted. If you want to pass user-specific information between pages, QueryString and Session State are your friends. Flinky Wisty Pomm |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make DVD that skips Menu and plays main movie directly | raining | Software | 4 | 06-21-2007 02:09 PM |
| Capture HD video directly from HDMI uncompressed | Smarty | DVD Video | 149 | 03-13-2007 03:04 AM |
| Multiple forms on datagrid | Ranjandada | Software | 0 | 07-28-2006 06:22 PM |
| Charles Band Forms Wizard Entertainment | Stacy | DVD Video | 1 | 05-10-2005 11:44 PM |
| DVD player that will play .dvr-ms or .ts files directly or fast converter | Rod Speed | DVD Video | 18 | 03-25-2005 11:31 PM |