473,465 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Div in aspnet

Hello,

I wonder if there is any web forms control or anything else which
allows me to have similar feature as the html tag <div>, in which all
controls within the div will disappear, when I hide it. And more
important is all controls underneath it will shift up...
Thanks in advance.
Wanda

Nov 19 '05 #1
6 1076
wa*****@rogers.com wrote:
Hello,

I wonder if there is any web forms control or anything else which
allows me to have similar feature as the html tag <div>, in which all
controls within the div will disappear, when I hide it. And more
important is all controls underneath it will shift up...
Thanks in advance.
Wanda


Why not use that <div>, with an "id" attribute and a "runat=server" ?
Then you want to set the property "Visible" to "false".

Hans Kesting
Nov 19 '05 #2


Then what will the exact syntax to setting the div visible = false?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
Hello wa*****@rogers.com,

Look into the panel control.

<asp:panel></asp:panel>

-john
Hello,

I wonder if there is any web forms control or anything else which
allows me to have similar feature as the html tag <div>, in which all
controls within the div will disappear, when I hide it. And more
important is all controls underneath it will shift up...
Thanks in advance.
Wanda

Nov 19 '05 #4
Hi Wanda,

I'm using System.Web.UI.WebControls.Panel for that purpose (it acts as
container for other controls, you can apply css styles to it and you can
make it invisible), but I guess you could also try
System.Web.UI.HtmlControls.HtmlGenericControl ...

Greetings, Ralf
Nov 19 '05 #5
Hello Wanda,

Whats wrong with <asp:Panel>?

--
Matt Berther
http://www.mattberther.com
Hello,

I wonder if there is any web forms control or anything else which
allows me to have similar feature as the html tag <div>, in which all
controls within the div will disappear, when I hide it. And more
important is all controls underneath it will shift up...
Thanks in advance.
Wanda

Nov 19 '05 #6
Wanda Li wrote:
Then what will the exact syntax to setting the div visible = false?

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


if you use <div id="myDiv" runat="server"></div>
then you should have a 'HtmlGenericControl myDiv' in your codebehind
(if not, switch to design-view and back. The value of the "id" attribute
becomes the name of the codebehind-variable)
then you can use 'myDiv.Visible = false'

Hans Kesting
Nov 19 '05 #7

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

Similar topics

2
by: Andrew J Fortune | last post by:
Hello all, I am trying to ascertain the difference, in terms of access and privileges, between the Internet Guest User Account (IUSR_machinename, where machinename is the name of your computer)...
22
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load...
3
by: Harry Simpson | last post by:
Windows Server 2003 is supposed to include Framework 1.1 right. I don't have it here but have reports that the web is not running. The users say that the %COMPUTERNAME%\ASPNET user doesn't exist....
1
by: Brian | last post by:
I have XP HOME installed on one of my 3 computers. I have WIN 2k Pro and XP Pro on each of the other two. ASPNET is not installed on these computers. For some reason ASPNET is showing up on the...
3
by: Kim | last post by:
After installing MSDE2000 on my WIN XP machine, I created the database from Access using the upsizing wizard. Although the tables can be seen from the server explorer, I keep on encountering...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
0
by: CESAR DE LA TORRE [MVP] | last post by:
I am using WSE 3.0 with Visual Studio 2005, specifically I'm using Kerberos authentication and passing Kerberos ticket from Presentation Tier (VSTO.2005 client) to Server Tier through our Web...
3
by: musosdev | last post by:
Hi guys I've just noticed I don't have an ASPNET user account running on either my Workstation or Server (both running .net2.0, workstation has vs2005 pro). Simple question... should it be...
7
by: torus | last post by:
Is the aspnet account called "aspnet" for all non-English versions of Windows and IIS?
5
by: =?Utf-8?B?TWljaGFlbCBNaWxsZXI=?= | last post by:
I created a walkthrough and couldn't connect to my sql server. I looked up the problem and MSDN told me to create an ASPNET "User" in SQL Svr. It worked, but is that right? Do I have to do that...
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,...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.