473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

hide and unhide tab panel in AJAX tab container

13
Does anyone know how to have a user click a checkbox to unhide a tabpanel within an AJAX tabcontainer? Unclick of the checkbox would hide it again. There is an example on the AJAX sample websites, but its not clear to me how they do it.

I am using visual web developer 2005 express and visual basic as language.
Apr 1 '07 #1
1 14745
In the samples they are doing it with Java Script.

Function:

function ToggleHidden(value) {
$find('<%=Tabs.ClientID%>').get_tabs()[2].set_enabled(value);


Called By the Check box in the markup:

<asp:CheckBox runat="server" ID="showComponents" Checked="true"
Text=" Show Controls Owned" onclick="ToggleHidden(this.checked)" />
<br /><br />

You could put the following in the page load as well:

Panel1.Enabled = True/False
Jun 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: mooeypoo | last post by:
Hello all, I'm a php developer. I have been using a very simple script to hide/unhide divs in my script: function DisplayI(obj) { obj.style.display=("none"==obj.style.display? "block" :...
2
by: Peter K | last post by:
How do I Hide/Unhide the Main Database Window in VB?
0
by: Tinus | last post by:
Hello all, I was wondering.... Is there a way to hide/unhide the Desktop Icons in C#? I've googled the net for it but couldn't find anything usefull :-( ANd if it is possiple, could someone...
0
by: Mac via DotNetMonster.com | last post by:
I have a MDI parent form and the only control on it is a panel anchored to the left hand side. I have menu items on the MDI parent that show & hide this panel. Ideally I would like it to show by...
3
by: toodi4 | last post by:
I'm using a javascript that hides and unhides text based on a button click. It works great across static fields on a form. The problem I have is that I'm trying to hide and unhide various fields...
3
by: =?Utf-8?B?aWxy?= | last post by:
Hi All I am developing an vb 2005 winforms application that connects to a database and displays a datagridview of the data. A user can select and then edit, or create a new entry by opening a...
2
nev
by: nev | last post by:
first of all, i'm not sure if this is the correct forum to post this question. please move if ever. the reason i placed it here is because you can create visual basic code in excel. i don't know...
11
by: Etienne1 | last post by:
Hello, I have a report with a subreport that has a subreport that as a subreport and so on. I have so far 6 levels and each of them is linked to his parent. What I'm trying to do is when a new...
2
by: Bay0519 | last post by:
Hi, I really need someone help.. I'm using access 2003 by the way. I have a form where users enter their time card. right now I have 15 lines (including textboxes and combo boxes in each...
0
by: atencorps | last post by:
Hello I have the following code but need some help on it. The idea of the code is the main sections ie Service Management are viewable when the page is loaded and by clicking on the main...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.