Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Displaying the same label twice in a page?


Message #1 by "Oliver, Wells" <WOliver@l...> on Tue, 27 Aug 2002 09:09:51 -0700
How can this be done?

If I put '<asp:label id="Name" runat="server" />' twice it gives me an
error.

Any tips? Thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com

Message #2 by "McCloy, Russell" <Russell.McCloy@B...> on Tue, 27 Aug 2002 17:14:30 +0100
are you using 
name="name"
name="name"

what is the error?

-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: 27 August 2002 17:10
To: ASP+
Subject: [aspx] Displaying the same label twice in a page?


How can this be done?

If I put '<asp:label id="Name" runat="server" />' twice it gives me an
error.

Any tips? Thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---



This is an email from Baker & McKenzie, solicitors. The contents of this
email are confidential to the ordinary user of the email address to which it
was addressed. No one else may copy or forward all or any of it in any form.
Our postal address is 100 New Bridge Street, London, EC4V 6JA, United
Kingdom, at which address a list of our partners may be inspected.  If you
receive this email in error, we should be obliged if you would  telephone
our postmaster on +xx xx xxxx xxxx or email london.postmaster@b...
Thank you. 

This is a legal communication not a financial communication. Neither this
nor any other communication from this firm is intended to be, or should be
construed as, an invitation or inducement (direct or indirect) to any person
to engage in investment activity.

The following information is provided in accordance with the Solicitors'
Financial Services (Conduct of Business) Rules 2001. The provision of our
legal services may relate to investments. We are not authorised by the
Financial Services Authority, but we can undertake certain activities in
relation to investments which are limited in scope and incidental to our
legal services or which may be reasonably regarded as a necessary part of
our legal services . We are regulated by the Law Society. If for any reason
we are unable to resolve a problem between us and a client, our client may
utilise the complaints and redress scheme operated by the Law Society.

Message #3 by "Sampath, Ramanujam (Cognizant)" <SRamanuj@c...> on Wed, 28 Aug 2002 10:21:28 +0530
Well oliver... it will throw a error for sure.. because u are using the same
id for both the label... If u want it generic then do it this way

<% Dim i as Integer
For i = 1 to 2 'If u want to repeat twice
%>
<asp:label id="Name"&<%=i%> runat="server" />
<% EndIf %>

So u will get two labels.. one with id=Name1 and another with id=Name2 so u
have 2 labels....

keep me posted if u still have issues...

==============================
S.Ramanujam
Programmer Analyst
Cognizant technology Solutions (p) Ltd. - CTS
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
     : +xx xx xxx xxxx                 [Res]


-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Tuesday, August 27, 2002 9:40 PM
To: ASP+
Subject: [aspx] RE: Displaying the same label twice in a page?


How can this be done?

If I put '<asp:label id="Name" runat="server" />' twice it gives me an
error.

Any tips? Thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com


---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---


  Return to Index