Hi all,
I would like to add more than one object to a table cell using the above, in
this case some text and a hyperlink.
I am writing the table row/cell programitcally and what to have something
like this:
Owner: Rob Meade
Where Rob Meade is a hyperlink.
I've created the hyperlink programmaticall y,and the text is usually a case
of Cell.text = etc
I know I cant do Cell.Controls.A dd("Owner: " & Hyperlink), so is there
another way to add these two items?
Any info would be appreciated.
Regards
Rob 3 1679
Rob,
Are you sure you are on the right track? Looks like you need a datagrid with
a template column.
Eliyahu
"Rob Meade" <ro**********@N OSPAMubht.swest .nhs.uk> wrote in message
news:OU******** ******@tk2msftn gp13.phx.gbl... Hi all,
I would like to add more than one object to a table cell using the above,
in this case some text and a hyperlink.
I am writing the table row/cell programitcally and what to have something like this:
Owner: Rob Meade
Where Rob Meade is a hyperlink.
I've created the hyperlink programmaticall y,and the text is usually a case of Cell.text = etc
I know I cant do Cell.Controls.A dd("Owner: " & Hyperlink), so is there another way to add these two items?
Any info would be appreciated.
Regards
Rob
"Eliyahu Goldin" wrote ... Are you sure you are on the right track? Looks like you need a datagrid with a template column.
Hi Elyahu,
Thanks for your reply..
A datagrid was considered for what I'm doing but I decided not to in the
end, I have found that if I use a Literal control I can achieve what I want
to do.
Thanks again for the reply.
Regards
Rob
Rob Meade wrote: Hi all,
I would like to add more than one object to a table cell using the above, in this case some text and a hyperlink.
I am writing the table row/cell programitcally and what to have something like this:
Owner: Rob Meade
Where Rob Meade is a hyperlink.
I've created the hyperlink programmaticall y,and the text is usually a case of Cell.text = etc
I know I cant do Cell.Controls.A dd("Owner: " & Hyperlink), so is there another way to add these two items?
Any info would be appreciated.
Regards
Rob
You need to add *two* controls to that cell:
1) a Label with the text "Owner: "
2) a Hyperlink with the correct text and NavigateURL
an other way it to add a Literal with the correct html for text & link
Hans Kesting This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tolga |
last post by:
How do insert a user control i have created into a datagrid cell.
Basically i am trying to create a column of my user controls. This is
what i have tried so far.
int i = 0;
while (i < dsSignIn1.Tables.Rows.Count)
{
SignatureControl.SignatureControl sig1 =
new SignatureControl.SignatureControl();
|
by: David Whitney |
last post by:
All:
I have a control that renders a table. As the table is rendered, each
row in the table is constructed by creating a run-time (dynamic)
object that is derived from an HtmlTableRow. The row has three
HtmlTableCell objects, and each cell contains a single control added
to the HtmlTableCell's Controls collection. The basic table renders
correctly, but the controls within the HtmlTableCell objects do not;
the cells are just empty. (Just...
|
by: Thanks |
last post by:
I have a routine that is called on Page_Init. It retrieves folder records
from a database which I display as Link Buttons in a table cell. I set the
table cell's bgcolor to a default color (say black for example). I am
dynamically creating the LinkButton controls and adding them into the table
cell and I've also hooked up an event handler for each LinkButton's Click
event. This all works fine.
Now in the Link Button's Click event...
|
by: Chuck Hartman |
last post by:
I've been trying to add an ImageButton object to a Calendar table cell, but
so far I am unable to handle the Command event from that button in my form's
code behind. Below is an example of what I am trying to do. The ImageButton
that is on the form handles its Command event just fine, but the ImageButton
that is added to the cell does not handle the event. Am I doing something
wrong, or is not possible to add server controls to a calendar...
|
by: Daniel Walzenbach |
last post by:
Hi,
I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchTopQuestionsAboutASPNETDataGridServerControl.asp, Selecting Rows by Clicking Anywhere).
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, _
ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) _
| |
by: RN |
last post by:
I have a table cell in which I add a few things, but I want a few HTML line
breaks (the <BR> tag) to separate these things. Sounds simple but I can't
get it to work.
Dim litBR as New Literal
litBR.text = "<BR><BR>"
MyTableCell.Controls.Add(CheckBoxControl)
MyTableCell.Controls.Add(litBR)
MyTableCell.Controls.Add(DataGridControl)
MyTableCell.Controls.Add(litBR)
|
by: gh |
last post by:
I have a HTML Table with 1 row and 1 column. I have a control I want to
add to the cell at runtime based on a condition. I can get the control
added by creating a row and cell and using the code below:
cell.Controls.Add(aCtl);
row.Cells.Add(cell);
tblDisplay.Rows.Add(row);
Is there a way to add the control to the row and cell already setup in
the table? When I try, tblDisplay.Controls.Add(aCtl), I get the
|
by: Frank M. Walter |
last post by:
Hello,
I have made an small AddIn with udf for excel 2003.
I use vs2003.
The point of view is the function __T()
I call it in excel sheet writing =__T()
I am not able to set a value to a given cell.
region.Value2="qwe"; //bumm!
A exception will be trown. On all PCs with excel.
HRESULT 0x800A03EC
|
by: DaveyP |
last post by:
I have a user control (called data_dictionary) which I need to add
into the header text of a datagrid. I'm doing this by adding the
control in the RowCreated event as follows:
dds_descriptions is an arraylist of strings. data_dictionary is the
user control
Sub gvw_data_RowCreated(ByVal sender As Object, ByVal e As
GridViewRowEventArgs)
|
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: 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: 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...
|
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: 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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |