Showing posts with label regarding. Show all posts
Showing posts with label regarding. Show all posts

Wednesday, March 28, 2012

Tab Container doubts

Hi,

I have two questions regarding the Tab Container Control:

1) How can I get the current Tab in the code behind ?

2) if I have five tabpanels, with one grid view on each one and I want to use the updatepanel.

should I create one updatepanel and place all the tabpanels on it, or create one updatepanel for each tabpanel ?

Thanks !

I haven't tried your Tab / Update Panel combinations, but getting the current TabIndex in your server code is easy.

Dim TabNoAsInteger

TabNo = TabContainer1.ActiveTabIndex

Remember Active.TabIndex is Zero based so if you have 4 tabes and the last one is selected, the active index will be "3"


Hi,

Personally, I'd place different UpdatePanel for each tab. Haven't done this ever too, you may have a try and know if it works.


The Tab / Update panel combination worked smothly by using a diferent updatepanel for each tabpanel, like Raymond suggested.

If you want, you can use an update progress like this:

<asp:UpdateProgressID="UpdateProgress1"runat="server"AssociatedUpdatePanelID="Tabs$Panel1$upd1">

Thanks Joe and Raymond,

Skynyrd

Monday, March 26, 2012

Tab Panel

Hi,

This is regarding the tab container control,

Is it possible to show a different page (a different website) in each Tab.

For eg.

there are two tabs Yahoo and Rediff

When Yahoo Tab is clicked the Tab Panel shows the Yahoo website and same way for rediff

Thanks in Advance.

Pab

I suppose it is possible put frames in both tabs and give the targert url to yahoo and rediff


Yes Thanks I got the solution, we can use the <iFrame> tag.

There is one more issue, the Tab is only in half of the webpage, can we increase the size of the Tab Panel, so that it occupies the full web page.

The Frame is reduced to half the page and scroll bar comes. I tried the height and width option by setting them to 100%


For width its fine but for height you have to set height in pixels