.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification