473,320 Members | 1,857 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,320 software developers and data experts.

How to hide div in AccordionPane?

In the content section of an AccordionPane I have a div (runat=server)
containing a link button.

I want to hide the div from code-behind (VB) but I can't figure out
the correct syntax. Can someone please help me?

Very grateful for fast response!

Best regards,

S
Jun 27 '08 #1
2 1815
Give the <divan id. I am not familiar with the AccordionPane. Likely, it
has a method allowing locating controls in the content by id, something like
FindControl. Once you have located the div, typecast it to HtmlControl and
set property Visible to false.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<st****@gmail.comwrote in message
news:35**********************************@27g2000h sf.googlegroups.com...
In the content section of an AccordionPane I have a div (runat=server)
containing a link button.

I want to hide the div from code-behind (VB) but I can't figure out
the correct syntax. Can someone please help me?

Very grateful for fast response!

Best regards,

S

Jun 27 '08 #2
Give your div an ID...

In your code behind, you need a reference to the div if it has not already
been put in place...

System.Web.UI.HtmlControls.HtmlControl YourDivId

then where you want to hide it...

YourDivId.Visible = false

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available

<st****@gmail.comwrote in message
news:35**********************************@27g2000h sf.googlegroups.com...
In the content section of an AccordionPane I have a div (runat=server)
containing a link button.

I want to hide the div from code-behind (VB) but I can't figure out
the correct syntax. Can someone please help me?

Very grateful for fast response!

Best regards,

S

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main...
3
by: alex | last post by:
I'd like to have a show/hide widget on my web site, kind of like "show details" / "hide details" in Google Groups. Is there a tutorial explaining how to make them? Google's is a bit complex and...
7
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field...
5
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
0
by: Kursat | last post by:
Hi, I have two accordion panes on a page and one of them includes a DropdownList. I want to fill that DropdownList on page load but null reference error occurs if the AccordionPane on which the...
6
by: Ralph | last post by:
Hi, I was reading effictive C++ and some other books again and they all tell you about hiding implementation details (proxy/pimpl/inheritance) but they never really explain when to use it. I...
1
by: Sinan Alkan | last post by:
Hi All, I have a button object in an AccordionPane on a "Web User Control" but i can not reach the click event of that button. The click event does not work. Here is my .ascx code ;...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.