473,672 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

am I among html friends here? Adding a button into a row on an asp.net page

Below is one row with a company logo in the left table cell and 'Reporting Tool' in the table cell on the right.
I would like to add a button in this same row, just to the right of the company logo, which will be for clicking on to create an Excel spreadsheet from the grid.
How do I use the colspan tag so that the rows above and below don't create new table cells themselves? Thank you. -greg

<tr>
<td colspan="1" style="height: 1px; text-align: center; ">
<img src="Images/logo_small.gif" style="text-align: center; margin: 0px;" /></td>
<td style="height: 1px;width:10%; text-align: center"> Put button here. </td>
<td colspan="1" style="height: 1px;width:100%; text-align: center;">
<span style="font-size: 16pt; font-family: Tahoma"></span>
<h2><span style="font-size: 16pt; font-family: Tahoma">Reporti ng Tool</span></h2>
</td>
</tr>

what do i put in this row below so it is not affected by the additional table cell in the row above it? colspan = ?

<tr>
<td style="vertical-align: top; width: 200px; height: 300px; background-color: lightgrey">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="S iteMapDataSourc e1" ImageSet="Arrow s" OnSelectedNodeC hanged="TreeVie w1_SelectedNode Changed">
<ParentNodeStyl e Font-Bold="False" />
<HoverNodeSty le Font-Underline="True " ForeColor="#555 5DD" BackColor="Yell ow" />
<SelectedNodeSt yle Font-Underline="True " ForeColor="#555 5DD" HorizontalPaddi ng="0px"
VerticalPadding ="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Blac k" HorizontalPaddi ng="5px"
NodeSpacing="0p x" VerticalPadding ="0px" />
</asp:TreeView>
</td>
<td style="width: 403px; margin: 0px;">
&nbsp;
<asp:ContentPla ceHolder ID="ContentPlac eHolder1" runat="server">
</asp:ContentPlac eHolder>
</td>
</tr>
Apr 21 '06 #1
2 1240
Not enitely sure what you are asking. The colspan atribute determines how
many columns a cell will span. e.g.

<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td collspan="2"></td>
</tr>
</table>

would give you a table with two rows. The first row would contain two cells
the second row would contain one cell that spanned acros the same space as
the two cells in the row above. I hope that helps.
"hazz" wrote:
Below is one row with a company logo in the left table cell and 'Reporting Tool' in the table cell on the right.
I would like to add a button in this same row, just to the right of the company logo, which will be for clicking on to create an Excel spreadsheet from the grid.
How do I use the colspan tag so that the rows above and below don't create new table cells themselves? Thank you. -greg

<tr>
<td colspan="1" style="height: 1px; text-align: center; ">
<img src="Images/logo_small.gif" style="text-align: center; margin: 0px;" /></td>
<td style="height: 1px;width:10%; text-align: center"> Put button here. </td>
<td colspan="1" style="height: 1px;width:100%; text-align: center;">
<span style="font-size: 16pt; font-family: Tahoma"></span>
<h2><span style="font-size: 16pt; font-family: Tahoma">Reporti ng Tool</span></h2>
</td>
</tr>

what do i put in this row below so it is not affected by the additional table cell in the row above it? colspan = ?

<tr>
<td style="vertical-align: top; width: 200px; height: 300px; background-color: lightgrey">
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="S iteMapDataSourc e1" ImageSet="Arrow s" OnSelectedNodeC hanged="TreeVie w1_SelectedNode Changed">
<ParentNodeStyl e Font-Bold="False" />
<HoverNodeSty le Font-Underline="True " ForeColor="#555 5DD" BackColor="Yell ow" />
<SelectedNodeSt yle Font-Underline="True " ForeColor="#555 5DD" HorizontalPaddi ng="0px"
VerticalPadding ="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Blac k" HorizontalPaddi ng="5px"
NodeSpacing="0p x" VerticalPadding ="0px" />
</asp:TreeView>
</td>
<td style="width: 403px; margin: 0px;">

<asp:ContentPla ceHolder ID="ContentPlac eHolder1" runat="server">
</asp:ContentPlac eHolder>
</td>
</tr>

Apr 21 '06 #2
Thank you. Just good to have validation of what colspan does. Thank
you. -Greg

"clickon" <cl*****@discus sions.microsoft .com> wrote in message
news:3C******** *************** ***********@mic rosoft.com...
Not enitely sure what you are asking. The colspan atribute determines how
many columns a cell will span. e.g.

<table>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td collspan="2"></td>
</tr>
</table>

would give you a table with two rows. The first row would contain two
cells
the second row would contain one cell that spanned acros the same space as
the two cells in the row above. I hope that helps.
"hazz" wrote:
Below is one row with a company logo in the left table cell and
'Reporting Tool' in the table cell on the right.
I would like to add a button in this same row, just to the right of the
company logo, which will be for clicking on to create an Excel
spreadsheet from the grid.
How do I use the colspan tag so that the rows above and below don't
create new table cells themselves? Thank you. -greg

<tr>
<td colspan="1" style="height: 1px; text-align: center; ">
<img src="Images/logo_small.gif" style="text-align: center; margin: 0px;"
/></td>
<td style="height: 1px;width:10%; text-align: center"> Put button here.
</td>
<td colspan="1" style="height: 1px;width:100%; text-align: center;">
<span style="font-size: 16pt; font-family: Tahoma"></span>
<h2><span style="font-size: 16pt; font-family: Tahoma">Reporti ng
Tool</span></h2>
</td>
</tr>

what do i put in this row below so it is not affected by the additional
table cell in the row above it? colspan = ?

<tr>
<td style="vertical-align: top; width: 200px; height: 300px;
background-color: lightgrey">
<asp:TreeView ID="TreeView1" runat="server"
DataSourceID="S iteMapDataSourc e1" ImageSet="Arrow s"
OnSelectedNodeC hanged="TreeVie w1_SelectedNode Changed">
<ParentNodeStyl e Font-Bold="False" />
<HoverNodeSty le Font-Underline="True " ForeColor="#555 5DD"
BackColor="Yell ow" />
<SelectedNodeSt yle Font-Underline="True " ForeColor="#555 5DD"
HorizontalPaddi ng="0px"
VerticalPadding ="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Blac k"
HorizontalPaddi ng="5px"
NodeSpacing="0p x" VerticalPadding ="0px" />
</asp:TreeView>
</td>
<td style="width: 403px; margin: 0px;">

<asp:ContentPla ceHolder ID="ContentPlac eHolder1" runat="server">
</asp:ContentPlac eHolder>
</td>
</tr>

Apr 21 '06 #3

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

Similar topics

12
6536
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the courses to pass the correct option value and then be displayed at the following URL: http://www.dslextreme.com/users/kevinlyons/selectResults.html I am passing countries, products, and courses. The first two display
3
3718
by: Kathy | last post by:
Can someone help me with the code to take the data in four fields on an HTML form and add it to a table in a database on an intranet. Thanks to all who help! Kathy
15
4754
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
1
4349
by: Andrew | last post by:
I'm adding this as it to me a while to figure out all the pieces to be able to do this without using Microsoft.Office.Interop which caused me problems on the web-server. Streaming is the easy part, but I couldn't initially work out how to manipulate the page setup to change page margins and orientation, that's why I was looking at Microsoft.Office.Interop. But with Microsoft.Office.Interop I couldn't fiure out how to stream HTML...
51
4376
by: Paul Gorodyansky | last post by:
Hi, Ran into the following problem while trying to have a code to attach a Virtual Keyboard to any user's form: User clicks a button and my JavaScript changes outerHTML of say <textarea - adding things like ONCLICK='saveCaret(this)' etc. and it also tries to save any text that user could've entered before the button press.
7
2786
by: thersitz | last post by:
I can't seem to get my html form to submit properly from within a web form. Here's my form tag syntax and some delivery hidden fields. <form id="myForm" action="https://xxx.order.net/xxx/cgi-bin/delivery.cgi" method="POST" onsubmit="return verify();"> <input type="hidden" name="recipient" value=me@mymail.net /> <input type="hidden" name="redirect" value="http://www.xxx.org/forms/confirmation.htm" /> .......................
15
5265
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
10
1405
by: chadsspameateremail | last post by:
I first should list my background and that is that I'm new to PHP. I would like to be able to have an HTML form where there is a list that you choose from. Depending on what item is chosen in the list different HTML is displayed somewhere else on the page. I know this might be possible by adding a submit button and reloading the page. But is there a way to do it without the submit button? I know that Java might be able to accomplish...
0
8404
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,...
0
8931
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, 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...
0
8680
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
agi2029
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...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5705
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();...
0
4227
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...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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 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.