473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

href code

Hi

How to write in c# href code so it looks in source

Slide - pokaz programu - Remonty firmy Delta Software

pls. look source of this link.
Thanks
Nov 17 '05 #1
5 5917
this is link:

<a>href="#"
onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
win001',5,true,true,true);return false">Slide - pokaz programu - Remonty
firmy Delta Software</a>

I want tp use this link with datagrid and
have problems with #.

Thanks
Konrad

"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@nemesis.news.tpi.pl...
Hi

How to write in c# href code so it looks in source

Slide - pokaz programu - Remonty firmy Delta Software

pls. look source of this link.
Thanks

Nov 17 '05 #2
Konrad,

Unless it's a typo your link is formatted incorrectly. The link's
attributes should be inside the <a> tag like this:

<a href="#"
onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
win001',5,true,true,true);return false">Slide - pokaz programu - Remonty
firmy Delta Software</a>
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
this is link:

<a>href="#"
onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my win001',5,true,true,true);return false">Slide - pokaz programu - Remonty
firmy Delta Software</a>

I want tp use this link with datagrid and
have problems with #.

Thanks
Konrad

"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@nemesis.news.tpi.pl...
Hi

How to write in c# href code so it looks in source

Slide - pokaz programu - Remonty firmy Delta Software

pls. look source of this link.
Thanks


Nov 17 '05 #3
Try placing "javascript:" in front like this:

<a href="#"
onclick="javascript:mywin001=openIt('KartyPracy_vi ewlet_swf.html',600,400,nu
ll,null,'mywin001',5,true,true,true);return false">Slide - pokaz programu -
Remonty firmy Delta Software</a>

(Sometimes "return false;" doesn't fire without it.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
I know it.
The question concerning inside part.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:OV**************@TK2MSFTNGP12.phx.gbl...
Konrad,

Unless it's a typo your link is formatted incorrectly. The link's
attributes should be inside the <a> tag like this:

<a href="#"

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
win001',5,true,true,true);return false">Slide - pokaz programu - Remonty
firmy Delta Software</a>
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
this is link:

<a>href="#"

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
win001',5,true,true,true);return false">Slide - pokaz programu - Remonty firmy Delta Software</a>

I want tp use this link with datagrid and
have problems with #.

Thanks
Konrad

"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@nemesis.news.tpi.pl...
> Hi
>
> How to write in c# href code so it looks in source
>
> Slide - pokaz programu - Remonty firmy Delta Software
>
> pls. look source of this link.
> Thanks
>
>



Nov 17 '05 #4
And how to do that using only code behind.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
Try placing "javascript:" in front like this:

<a href="#"
onclick="javascript:mywin001=openIt('KartyPracy_vi ewlet_swf.html',600,400,nu ll,null,'mywin001',5,true,true,true);return false">Slide - pokaz programu - Remonty firmy Delta Software</a>

(Sometimes "return false;" doesn't fire without it.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
I know it.
The question concerning inside part.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:OV**************@TK2MSFTNGP12.phx.gbl...
Konrad,

Unless it's a typo your link is formatted incorrectly. The link's
attributes should be inside the <a> tag like this:

<a href="#"

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
win001',5,true,true,true);return false">Slide - pokaz programu - Remonty firmy Delta Software</a>
--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
> this is link:
>
> <a>href="#"
>

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
> win001',5,true,true,true);return false">Slide - pokaz programu - Remonty > firmy Delta Software</a>
>
> I want tp use this link with datagrid and
> have problems with #.
>
> Thanks
> Konrad
>
> "Konrad" <ko*******@poczta.onet.pl> wrote in message
> news:bg**********@nemesis.news.tpi.pl...
> > Hi
> >
> > How to write in c# href code so it looks in source
> >
> > Slide - pokaz programu - Remonty firmy Delta Software
> >
> > pls. look source of this link.
> > Thanks
> >
> >
>
>



Nov 17 '05 #5
Konrad,

You can add attributes to any .Net object from the code behind by utilizing
the "Attributes" method:

MyLink.Attributes.Add("onClick",
onclick="javascript:mywin001=openIt'KartyPracy_vie wlet_swf.html',600,400,nul
l,null,'mywin001',5,true,true,true);return false")

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
And how to do that using only code behind.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
Try placing "javascript:" in front like this:

<a href="#"

onclick="javascript:mywin001=openIt('KartyPracy_vi ewlet_swf.html',600,400,nu
ll,null,'mywin001',5,true,true,true);return false">Slide - pokaz

programu -
Remonty firmy Delta Software</a>

(Sometimes "return false;" doesn't fire without it.)

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Konrad" <ko*******@poczta.onet.pl> wrote in message
news:bg**********@atlantis.news.tpi.pl...
I know it.
The question concerning inside part.

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:OV**************@TK2MSFTNGP12.phx.gbl...
> Konrad,
>
> Unless it's a typo your link is formatted incorrectly. The link's
> attributes should be inside the <a> tag like this:
>
> <a href="#"
>

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
> win001',5,true,true,true);return false">Slide - pokaz programu - Remonty > firmy Delta Software</a>
>
>
> --
> S. Justin Gengo, MCP
> Web Developer
>
> Free code library at:
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzche
> "Konrad" <ko*******@poczta.onet.pl> wrote in message
> news:bg**********@atlantis.news.tpi.pl...
> > this is link:
> >
> > <a>href="#"
> >
>

onclick="mywin001=openIT('KartyPracy_viewlet_swf.h tml',600,400,null,null,'my
> > win001',5,true,true,true);return false">Slide - pokaz programu -

Remonty
> > firmy Delta Software</a>
> >
> > I want tp use this link with datagrid and
> > have problems with #.
> >
> > Thanks
> > Konrad
> >
> > "Konrad" <ko*******@poczta.onet.pl> wrote in message
> > news:bg**********@nemesis.news.tpi.pl...
> > > Hi
> > >
> > > How to write in c# href code so it looks in source
> > >
> > > Slide - pokaz programu - Remonty firmy Delta Software
> > >
> > > pls. look source of this link.
> > > Thanks
> > >
> > >
> >
> >
>
>



Nov 17 '05 #6

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

Similar topics

14
by: Brandon Hoppe | last post by:
I'm trying to change the src of an ilayer in the parent document from a link inside the ilayer. I'm not able to get it to work. All that happens is Netscape 4 crashes. This is for Netscape 4 only....
5
by: Mike | last post by:
In my previous post, I wrote: > ... > GOAL: (very simple) Provide a hyperlink which, when clicked, > calls a javascript function which opens a new URL. > ... > PROBLEM: The following code...
2
by: Kevin Lyons | last post by:
Hello, Can anyone assist me with what I am trying to do with the following code (six different scenarios to try to make the functionality work correctly)? I want to always (and ONLY) display...
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
2
by: yogesh.bhardwaj | last post by:
Hello all I am trying to modify the link URL when a user clicks on the link. Following is the code: <a onClick="document.location.href=modifyURL(this.href);" href="SOME_DYNAMIC_URL"...
4
by: Jerry Sievers | last post by:
JS Programmers, "I'm a server-side coder PHP, Postgres etc... My question; Given the following anchor <a href="http://www.somesite.com/somefile.html">link text</a> Is there a way to code an...
53
by: usenet | last post by:
See <ul> <li><a name="link1" onClick="alert(this.name);return false;" href="#">Link1</a></li> <li><a name="link2" href="javascript:alert(this);">Link2</a></li> <li>Item 3</li> </ul> ...
14
by: Adnan Siddiqi | last post by:
Hi Suppose I have following URLs comming from an HTML document <a href="http://mydomain1.com">Domain1</a> <a...
12
by: Inny | last post by:
Im trying to rewrite a link with a href function. I need to parse a query string within it ('+tid') But all attempts Have falied. The current onclick/ link function <a href="java...
11
by: coflo | last post by:
Hello I would like to replace an a href link that is provided in the RSS below with my own link. The link that I am looking to replace is defined in the <description> tag within the RSS. Im...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
jinu1996
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...

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.