Search:
Namespaces
Discussions
.NET v1.1
Feedback
HTML in code behind
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngvb' list
.
Carlos Magalhaes
Hi all,
I am running a db query that will return one of the two "Nothing in the db"
and A value in the form of a number e.g. 1 or 2
Now this is then written to a label e.g
Dim value as string
Value = the dataset I have filled from the db that will return those
values.
Ok then what I do is
Mylabel.text = "There is " & Value & " . "
But what I want to do is if there is a value e.g. 1 or 2 and not "Nothing in
the db" then make a hyper link of the value
e.g The label will read : There is 1(and this is what I want to have a
hyperlink to another page using javascript:window.open)
I am using code behind (VB.net) can anyone show me how to do that?
Thank you
Carlos
-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.
Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.
If you have received this email in error please notify
Click here to reveal e-mail address
For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>
Reply to this message...
Daniel Naumann
Hi all,
I am running a db query that will return one of the two "Nothing in the db"
and A value in the form of a number e.g. 1 or 2
Now this is then written to a label e.g
Dim value as string
Value = the dataset I have filled from the db that will return those
values.
Ok then what I do is
Mylabel.text = "There is " & Value & " . "
But what I want to do is if there is a value e.g. 1 or 2 and not "Nothing in
the db" then make a hyper link of the value
e.g The label will read : There is 1(and this is what I want to have a
hyperlink to another page using javascript:window.open)
I am using code behind (VB.net) can anyone show me how to do that?
Thank you
Carlos
-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.
Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.
If you have received this email in error please notify
Click here to reveal e-mail address
For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>
Reply to this message...
Jaison Green
Hi all,
=A0
I am running a db query that will return one of the two "Nothing in the
= db" and A value in the form of a number e.g. 1 or 2 =A0 Now this is
then written to a label e.g=20 =A0 Dim value as string Value =3D =A0the
dataset I have filled from the db that will return = those values. =A0
Ok then what I do is =A0 Mylabel.text =3D =A0"There is " & Value & " . "
=A0 But what I want to do is if there is a value e.g. 1 or 2 and not "Nothing in the db" then make a hyper link of the value =A0 e.g The
label will read : There is 1(and this is what I want to have a hyperlink
to another page using javascript:window.open) =A0 I am using code behind
(VB.net) can anyone show me how to do that? =A0 Thank you=20 =A0 Carlos
-------------------------------------------------------------
This email and any files transmitted are
confidential and intended solely for the
use of the individual or entity to which
they are addressed, whose privacy
should be respected. Any views or
opinions are solely those of the author
and do not necessarily represent those
of the Trencor Group, or any of its
representatives, unless specifically
stated.
Email transmission cannot be guaranteed
to be secure, error free or without virus
contamination. The sender therefore
accepts no liability for any errors or
omissions in the contents of this message,
nor for any virus infection that might result
from opening this message. Trencor is not
responsible in the event of any third party
interception of this email.
If you have received this email in error please notify
Click here to reveal e-mail address
For more information about
Trencor, visit www.trencor.net <http://www.trencor.net>
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com