I attempted the following
<div id="div" runat="server">
<tr><td></td></tr>
<tr><td></td></tr>
</div>
This is to hide a group of rows depending on some business rules in my code
behind.
It works. BUT.
When I go back to the aspx page, VS.NET has f*d it up by inserting the
</div> tag.
<div id="div" runat="server"> </div>
<tr><td></td></tr>
<tr><td></td></tr>
<div></div>
Note to Microsoft. DO NOT EVER DO ME A FAVOR. NEVER ASKED FOR IT, SO
PLEEEEEESE.
Sorry... just had to get it off the chest. Obvously the editor does not
like what it sees and it "corrects" what it does not like. What do you
advise? I have a table with a bunch of rows that encapsulate fields. Under
certain business rules, I would like to hide a group of rows. I suppose I
could do this row by row, but that is a lot of work... 4 2358
Hi David,
I know the visual studio.net does the reformatting of the html tags.. but
there is a good news for you that will no more be there in the Next version
Visual Studio 2005 based on the users feedback this is taken care in
Whidbey.
Right now my suggestion would be to use place holder controls if you are
facing too much problems with the html formatting using DIC or in Visual
Studion you take a look at the settings for
Options->Text Editor->Html-Xml->HTML Specific and see the autor insert
section.
Regards
Ashish M Bhonkiya
"David" <sp************ @spammersgohome .com> wrote in message
news:4c******** *******@twister .socal.rr.com.. . I attempted the following
<div id="div" runat="server"> <tr><td></td></tr> <tr><td></td></tr> </div>
This is to hide a group of rows depending on some business rules in my
code behind.
It works. BUT.
When I go back to the aspx page, VS.NET has f*d it up by inserting the </div> tag.
<div id="div" runat="server"> </div> <tr><td></td></tr> <tr><td></td></tr> <div></div>
Note to Microsoft. DO NOT EVER DO ME A FAVOR. NEVER ASKED FOR IT, SO PLEEEEEESE.
Sorry... just had to get it off the chest. Obvously the editor does not like what it sees and it "corrects" what it does not like. What do you advise? I have a table with a bunch of rows that encapsulate fields.
Under certain business rules, I would like to hide a group of rows. I suppose I could do this row by row, but that is a lot of work...
Actually, it is de-f*ing your improper HTML.
If you think the editor doesn't like it, you'll just love what some browsers
will do with it.
Bob Lehmann
"David" <sp************ @spammersgohome .com> wrote in message
news:4c******** *******@twister .socal.rr.com.. . I attempted the following
<div id="div" runat="server"> <tr><td></td></tr> <tr><td></td></tr> </div>
This is to hide a group of rows depending on some business rules in my
code behind.
It works. BUT.
When I go back to the aspx page, VS.NET has f*d it up by inserting the </div> tag.
<div id="div" runat="server"> </div> <tr><td></td></tr> <tr><td></td></tr> <div></div>
Note to Microsoft. DO NOT EVER DO ME A FAVOR. NEVER ASKED FOR IT, SO PLEEEEEESE.
Sorry... just had to get it off the chest. Obvously the editor does not like what it sees and it "corrects" what it does not like. What do you advise? I have a table with a bunch of rows that encapsulate fields.
Under certain business rules, I would like to hide a group of rows. I suppose I could do this row by row, but that is a lot of work...
I have been using ASP Panels for this type of thing, because of the issue
you are running into. Replace your divs with panels, and you can set the
visible property true or false.
"David" <sp************ @spammersgohome .com> wrote in message
news:4c******** *******@twister .socal.rr.com.. . I attempted the following
<div id="div" runat="server"> <tr><td></td></tr> <tr><td></td></tr> </div>
This is to hide a group of rows depending on some business rules in my
code behind.
It works. BUT.
When I go back to the aspx page, VS.NET has f*d it up by inserting the </div> tag.
<div id="div" runat="server"> </div> <tr><td></td></tr> <tr><td></td></tr> <div></div>
Note to Microsoft. DO NOT EVER DO ME A FAVOR. NEVER ASKED FOR IT, SO PLEEEEEESE.
Sorry... just had to get it off the chest. Obvously the editor does not like what it sees and it "corrects" what it does not like. What do you advise? I have a table with a bunch of rows that encapsulate fields.
Under certain business rules, I would like to hide a group of rows. I suppose I could do this row by row, but that is a lot of work...
Hi
This is not valid html so don't blame MS ;)
Try giving the <tr> you want to hide/display the same name
<tr name="myStuff"> <td></td></tr>
<tr name="myStuff"> <td></td></tr>
then to show..
function toggle(){
var e = document.getEle mentsByName("my Stuff");
if(e != null)
{
// Get current status
var sDisplay = ( e.style.display == "none" ) ? "block" : "none";
for(i=0;i<e.len gth;i++)
{
e[i].style.display = sDisplay;
}
}
}
More info: http://msdn.microsoft.com/library/de...ence_entry.asp
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP http://www.microsoft.com/technet/scriptcenter
=============== ===============
"David" <sp************ @spammersgohome .com> wrote in message
news:4c******** *******@twister .socal.rr.com.. . I attempted the following
<div id="div" runat="server"> <tr><td></td></tr> <tr><td></td></tr> </div>
This is to hide a group of rows depending on some business rules in my code behind.
It works. BUT.
When I go back to the aspx page, VS.NET has f*d it up by inserting the </div> tag.
<div id="div" runat="server"> </div> <tr><td></td></tr> <tr><td></td></tr> <div></div>
Note to Microsoft. DO NOT EVER DO ME A FAVOR. NEVER ASKED FOR IT, SO PLEEEEEESE.
Sorry... just had to get it off the chest. Obvously the editor does not like what it sees and it "corrects" what it does not like. What do you advise? I have a table with a bunch of rows that encapsulate fields. Under certain business rules, I would like to hide a group of rows. I suppose I could do this row by row, but that is a lot of work...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul Thompson |
last post by:
When I put a <div ...> inside a <table> specification, functionality is
not there. When I put the <table> inside the <div> everything works.
Why is that?
|
by: KathyB |
last post by:
Hi, totally new to the div show/hide thing.
I have some rows in a table. When I first load the page, I only want
to see divs where the divID=ForView. When I load now, I see BOTH
rows...even though I have one set to style="display='none'".
When I click on the Edit button on a row, I want to hide that row and
in its PHYSICAL place show the ForEdit div for that item...leaving all
other divs as is. I've seen some examples, everyone seems...
|
by: F. Da Costa |
last post by:
Following is a snippet of html in which I hide a whole table and try to
hide a single row.
Here is my question (plz don't chew my head off if its css related instead):
Why does the divTable <div> Hide/Show work but not the divRow version?
What I'm trying to do here is simultaneously hide 1 or more rows
(possibly with nested divs as well).
This would allow for an elegant an well performing base for an html base
treetable (but I guess...
|
by: Toby Austin |
last post by:
I'm trying to replace <table>s with <div>s as much as possible.
However, I can't figure out how to do the following…
<table>
<tr>
<td valign="top" width="100%">some data that will 'stretch'</td>
<td valign="top" width="300">some data that won't 'stetch'</td>
</tr>
</table>
|
by: Herbman |
last post by:
Hi,
I'm trying to position a <tr> ("row") element with CSS.
The table itself is positioned with <div> tags. The problem is when I
use <div> tags to position the rows within the table nothing happens.
In the following example, I want to position two table rows relative
to the table itself.
Can anyone tell me what I am doing wrong? Please provide sample code.
| |
by: CMAR |
last post by:
I have the following markup. The problem is that the browser, e.g., IE6,
inserts several lines of blank space between the <div> and the following
table. Is there a way to minimize that vertical spacing?
Thanks, CMA
<div class="vlgray">Condition</div>
<table cellpadding="0" cellspacing="0">
|
by: Sean |
last post by:
I have a table (with tabular data) that I want to display on a webpage.
Initially the talbe is empty. When a user clicks on a button, a child
window opens up with a form and some text fields. Then, the user clicks
submit on this child window, closing the child and sending the information
back to the parent.
That part works.
Now, I want to have the parent window change the innerHTML of a div tag that
I have nested in the table like...
|
by: cargo303 |
last post by:
I have a php page with a drop down list, and the default selected
option is "Select a location" (without quotes).
Using the drop down initiates a database query. One of (3) things
should happen:
1. If an option is selected for which results are available, they
should be displayed on the same page beneath the drop down list in a
table.
2. If an option is selected for which results are NOT available, a
|
by: prino |
last post by:
Hi all,
I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |