Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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


    Konrad Guest

  2. Similar Questions and Discussions

    1. href help
      I'm pretty new to CF still and I have created a cfm page that retreives a specific record according to what was selected on the previous page. The...
    2. cfformitem and HREF
      Can you post the sample code for underlining links in a flash from.
    3. Get-Post in <A HREF>....
      I've a page with a link like this: <a href="Login.php?LogType=SearchProfile">Profils de recherche</a> <a...
    4. href links
      My site has gone from 5 pages to 50 over this year. Every page has a sidebar, which includes the title, content and link to the other page on my...
    5. passing value via href
      How do I write a hyperlink that also passes a value to the destination php page? Thanks in advance. ~Duane.
  3. #2

    Default Re: href code

    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" <konrad007@poczta.onet.pl> wrote in message
    news:bg11mb$bgs$1@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
    >
    >

    Konrad Guest

  4. #3

    Default Re: href code

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Konrad" <konrad007@poczta.onet.pl> wrote in message
    news:bg1207$1l2$1@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" <konrad007@poczta.onet.pl> wrote in message
    > news:bg11mb$bgs$1@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
    > >
    > >
    >
    >

    S. Justin Gengo Guest

  5. #4

    Default Re: href code

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Konrad" <konrad007@poczta.onet.pl> wrote in message
    news:bg15vl$mlb$1@atlantis.news.tpi.pl...
    > I know it.
    > The question concerning inside part.
    >
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > news:OVQmOgGVDHA.2236@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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Konrad" <konrad007@poczta.onet.pl> wrote in message
    > > news:bg1207$1l2$1@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" <konrad007@poczta.onet.pl> wrote in message
    > > > news:bg11mb$bgs$1@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
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

  6. #5

    Default Re: href code

    And how to do that using only code behind.

    "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    news:#9I2PLKVDHA.2068@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:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Konrad" <konrad007@poczta.onet.pl> wrote in message
    > news:bg15vl$mlb$1@atlantis.news.tpi.pl...
    > > I know it.
    > > The question concerning inside part.
    > >
    > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > > news:OVQmOgGVDHA.2236@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:
    > > > [url]www.aboutfortunate.com[/url]
    > > >
    > > > "Out of chaos comes order."
    > > > Nietzche
    > > > "Konrad" <konrad007@poczta.onet.pl> wrote in message
    > > > news:bg1207$1l2$1@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" <konrad007@poczta.onet.pl> wrote in message
    > > > > news:bg11mb$bgs$1@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
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Konrad Guest

  7. #6

    Default Re: href code

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Konrad" <konrad007@poczta.onet.pl> wrote in message
    news:bg25d5$klr$1@atlantis.news.tpi.pl...
    > And how to do that using only code behind.
    >
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > news:#9I2PLKVDHA.2068@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:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Konrad" <konrad007@poczta.onet.pl> wrote in message
    > > news:bg15vl$mlb$1@atlantis.news.tpi.pl...
    > > > I know it.
    > > > The question concerning inside part.
    > > >
    > > > "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    > > > news:OVQmOgGVDHA.2236@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:
    > > > > [url]www.aboutfortunate.com[/url]
    > > > >
    > > > > "Out of chaos comes order."
    > > > > Nietzche
    > > > > "Konrad" <konrad007@poczta.onet.pl> wrote in message
    > > > > news:bg1207$1l2$1@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" <konrad007@poczta.onet.pl> wrote in message
    > > > > > news:bg11mb$bgs$1@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
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139