Search:
Namespaces
Discussions
.NET v1.1
Feedback
Events with Multipage/Tabstrip Control
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebcontrols' list
.
REM
I am using the "target" attribute in some of my links
(within a
TreeView
control and within a separate
DataGrid
control) to open up links in an IFRAME in my
Multipage/Tabstrip Controls.
I have two Multipage/Tabstrips set up. One I call
"grid", and it has four tabs, "List" (this is a
DataGrid), "Search", "Select" and "Help". The other I
call "main", which is used for main displays of
details and other stuff, and has tabs for "New
Record", "Details" (for data entry), and "View" (to
view an associated image of the document, if any).
Now, from the Treeview I set up to the "List" Tab (the
DataGrid) is no problem. I target the "grid_list"
IFRAME Tab window, and it works, simply because the
first Tab is "List".
However, the default Tab on the "main"
MultiPage/TabStrip is "New Record". The "Details" Tab
is the second of the four tabs. When I target the
"main_details" IFRAME window in the Details Tab (from
a HyperlinkColumn in the DataGrid), it will load the
details, but won't automatically show the Details Tab
(since it is the second Tab and is "hidden"). I have
to click on the "Details" Tab in order to see the
change.
I don't want to simply make "Details" the first tab,
which is easy enough, because I anticipate many other
"events" loading information into specific Tabs, and I
am giving only one example.
Is there any event that I can script that will make
the appropriate Tab show when a user does click on a
link that is supposed to target a specific IFRAME
window in a specific Tab? Or are there any examples
out there that I have overlooked?
As always, thanks for any advice.
REM (a lawyer who wishes he was also a .NET
programming guru)
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Reply to this message...
James Avery
You can choose with tab is selected doing something like this:
Mytab.SelectedIndex = 2;
This would select the third tab(0 index). You could do something
through the querystring like this:
Mytabpage.aspx?tab=2
void Page_Load(object sender, System.
EventArgs
e)
{
int iIndex =
Convert
.ToInt32(
HttpContext
.Current.QueryString["tab"]);
if(iIndex == "")
{
iIndex = 0; //if blank set to zero
}
Mytab.SelectedIndex = iIndex;
}
Does this help?
James
-----Original Message-----
From: REM [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 16, 2002 11:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Events with Multipage/Tabstrip Control
I am using the "target" attribute in some of my links
(within a
TreeView
control and within a separate
DataGrid
control) to open up links in an IFRAME in my Multipage/Tabstrip
Controls.
I have two Multipage/Tabstrips set up. One I call
"grid", and it has four tabs, "List" (this is a
DataGrid), "Search", "Select" and "Help". The other I
call "main", which is used for main displays of
details and other stuff, and has tabs for "New
Record", "Details" (for data entry), and "View" (to
view an associated image of the document, if any).
Now, from the Treeview I set up to the "List" Tab (the
DataGrid) is no problem. I target the "grid_list"
IFRAME Tab window, and it works, simply because the
first Tab is "List".
However, the default Tab on the "main"
MultiPage/TabStrip is "New Record". The "Details" Tab
is the second of the four tabs. When I target the "main_details" IFRAME
window in the Details Tab (from a HyperlinkColumn in the DataGrid), it
will load the details, but won't automatically show the Details Tab
(since it is the second Tab and is "hidden"). I have to click on the
"Details" Tab in order to see the change.
I don't want to simply make "Details" the first tab,
which is easy enough, because I anticipate many other
"events" loading information into specific Tabs, and I
am giving only one example.
Is there any event that I can script that will make
the appropriate Tab show when a user does click on a
link that is supposed to target a specific IFRAME
window in a specific Tab? Or are there any examples
out there that I have overlooked?
As always, thanks for any advice.
REM (a lawyer who wishes he was also a .NET
programming guru)
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
Reply to this message...
REM
Thanks to James for helping to figure this out for me.
For anyone interested in this type of event, the
following code works (assuming the id for the TabStrip
control is "tsHoriz"):
int iIndex =
Convert
.ToInt32(
HttpContext
.Current.Request.QueryString["tab"];
void Page_Load(object sender,
EventArgs
e)
{
if(!Page.IsPostBack)
{
tsHoriz.SelectedIndex = iIndex;
}
}
Reference the page thus:
Mypage.aspx?tab=1
where "tab=1" is the 0-index tab you want to show.
Now, I have two tab controls on the same page. This
code would appear to also work (assuming tab control 1
is "tsHoriz" and tab control 2 is "tsHoriz2"):
int iIndex =
Convert
.ToInt32(
HttpContext
.Current.Request.QueryString["tab"];
int iIndex2 =
Convert
.ToInt32(
HttpContext
.Current.Request.QueryString["tab2"];
void Page_Load(object sender,
EventArgs
e)
{
if(!Page.IsPostBack)
{
tsHoriz.SelectedIndex = iIndex;
tsHoriz2.SelectedIndex = iIndex2;
}
}
Reference the page thus:
Mypage.aspx?tab=1&tab2=2 (or variations thereof)
NOW, here is my problem: 'tsHoriz2.SelectedIndex =
iIndex2;' would give me an error stating that I am
missing an assembly reference. When I viewed the
source of the rendered page, I realized that the
control was WITHIN another control. Specifically, I
am using the PAL Drop Down Panel control. This second
tab control is within the PAL control.
The view source for 'tsHoriz' in the <input> tag gave
it the name '_tsHoriz_State_'. The view source for
'tsHoriz2' in the <input> tag gave it the name
'_ddpanel1_ctl1_tsHoriz2_State_'.
I tried ddpanel1.tsHoriz2.SelectedIndex = iIndex2;',
but I got the error "CS0117:
'PAL.WebControls.DropDownPanel' does not contain a
definition for 'tsHoriz2'". This makes sense, and so
I tried a lot of variations using the <input> tag
information. All to no avail.
Am I doing the impossible? Or is there a way around
this? My only alternative is to not use the PAL
control.
Thanks!
REM
--- James Avery <
Click here to reveal e-mail address
> wrote:
[Original message clipped]
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Reply to this message...
Kapcsos, Wade
does anyone know how to navigate to another .aspx page using the tabstrip
control but NOT the multipage?
-----Original Message-----
From: James Avery [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 16, 2002 10:42 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Events with Multipage/Tabstrip Control
You can choose with tab is selected doing something like this:
Mytab.SelectedIndex = 2;
This would select the third tab(0 index). You could do something
through the querystring like this:
Mytabpage.aspx?tab=2
void Page_Load(object sender, System.
EventArgs
e)
{
int iIndex
Convert
.ToInt32(
HttpContext
.Current.QueryString["tab"]);
if(iIndex == "")
{
iIndex = 0; //if blank set to zero
}
Mytab.SelectedIndex = iIndex;
}
Does this help?
James
-----Original Message-----
From: REM [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 16, 2002 11:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Events with Multipage/Tabstrip Control
I am using the "target" attribute in some of my links
(within a
TreeView
control and within a separate
DataGrid
control) to open up links in an IFRAME in my Multipage/Tabstrip
Controls.
I have two Multipage/Tabstrips set up. One I call
"grid", and it has four tabs, "List" (this is a
DataGrid), "Search", "Select" and "Help". The other I
call "main", which is used for main displays of
details and other stuff, and has tabs for "New
Record", "Details" (for data entry), and "View" (to
view an associated image of the document, if any).
Now, from the Treeview I set up to the "List" Tab (the
DataGrid) is no problem. I target the "grid_list"
IFRAME Tab window, and it works, simply because the
first Tab is "List".
However, the default Tab on the "main"
MultiPage/TabStrip is "New Record". The "Details" Tab
is the second of the four tabs. When I target the "main_details" IFRAME
window in the Details Tab (from a HyperlinkColumn in the DataGrid), it
will load the details, but won't automatically show the Details Tab
(since it is the second Tab and is "hidden"). I have to click on the
"Details" Tab in order to see the change.
I don't want to simply make "Details" the first tab,
which is easy enough, because I anticipate many other
"events" loading information into specific Tabs, and I
am giving only one example.
Is there any event that I can script that will make
the appropriate Tab show when a user does click on a
link that is supposed to target a specific IFRAME
window in a specific Tab? Or are there any examples
out there that I have overlooked?
As always, thanks for any advice.
REM (a lawyer who wishes he was also a .NET
programming guru)
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
Reply to this message...
Emil Christopher Melar
handle onindexchanged or check if index is changed in page_load and
response.redirect from there.
-
Emil Chr. Melar
-----Original Message-----
From: Kapcsos, Wade [mailto:
Click here to reveal e-mail address
]
Sent: 21. mai 2002 23:20
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Events with Multipage/Tabstrip Control
does anyone know how to navigate to another .aspx page using the
tabstrip control but NOT the multipage?
-----Original Message-----
From: James Avery [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 16, 2002 10:42 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Events with Multipage/Tabstrip Control
You can choose with tab is selected doing something like this:
Mytab.SelectedIndex = 2;
This would select the third tab(0 index). You could do something
through the querystring like this:
Mytabpage.aspx?tab=2
void Page_Load(object sender, System.
EventArgs
e)
{
int iIndex =
Convert
.ToInt32(
HttpContext
.Current.QueryString["tab"]);
if(iIndex == "")
{
iIndex = 0; //if blank set to zero
}
Mytab.SelectedIndex = iIndex;
}
Does this help?
James
-----Original Message-----
From: REM [mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 16, 2002 11:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Events with Multipage/Tabstrip Control
I am using the "target" attribute in some of my links
(within a
TreeView
control and within a separate
DataGrid
control) to open up links in an IFRAME in my Multipage/Tabstrip
Controls.
I have two Multipage/Tabstrips set up. One I call
"grid", and it has four tabs, "List" (this is a
DataGrid), "Search", "Select" and "Help". The other I
call "main", which is used for main displays of
details and other stuff, and has tabs for "New
Record", "Details" (for data entry), and "View" (to
view an associated image of the document, if any).
Now, from the Treeview I set up to the "List" Tab (the
DataGrid) is no problem. I target the "grid_list"
IFRAME Tab window, and it works, simply because the
first Tab is "List".
However, the default Tab on the "main"
MultiPage/TabStrip is "New Record". The "Details" Tab
is the second of the four tabs. When I target the "main_details" IFRAME
window in the Details Tab (from a HyperlinkColumn in the DataGrid), it
will load the details, but won't automatically show the Details Tab
(since it is the second Tab and is "hidden"). I have to click on the
"Details" Tab in order to see the change.
I don't want to simply make "Details" the first tab,
which is easy enough, because I anticipate many other
"events" loading information into specific Tabs, and I
am giving only one example.
Is there any event that I can script that will make
the appropriate Tab show when a user does click on a
link that is supposed to target a specific IFRAME
window in a specific Tab? Or are there any examples
out there that I have overlooked?
As always, thanks for any advice.
REM (a lawyer who wishes he was also a .NET
programming guru)
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
| [aspngwebcontrols] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngwebcontrols.asp
= JOIN/QUIT
Reply to this message...
System.Convert
System.EventArgs
System.Web.HttpContext
System.Web.UI.Page
System.Web.UI.WebControls.DataGrid
System.Windows.Forms.DataGrid
System.Windows.Forms.TreeView
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com