href code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Konrad

    #1

    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

    #2
    Re: href code

    this is link:

    <a>href="#"
    onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y
    win001',5,true, true,true);retu rn 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@pocz ta.onet.pl> wrote in message
    news:bg11mb$bgs $1@nemesis.news .tpi.pl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • S. Justin Gengo

      #3
      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="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y
      win001',5,true, true,true);retu rn 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" <konrad007@pocz ta.onet.pl> wrote in message
      news:bg1207$1l2 $1@atlantis.new s.tpi.pl...[color=blue]
      > this is link:
      >
      > <a>href="#"
      >[/color]
      onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue]
      > win001',5,true, true,true);retu rn 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@pocz ta.onet.pl> wrote in message
      > news:bg11mb$bgs $1@nemesis.news .tpi.pl...[color=green]
      > > 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
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • S. Justin Gengo

        #4
        Re: href code

        Try placing "javascript :" in front like this:

        <a href="#"
        onclick="javasc ript:mywin001=o penIt('KartyPra cy_viewlet_swf. html',600,400,n u
        ll,null,'mywin0 01',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" <konrad007@pocz ta.onet.pl> wrote in message
        news:bg15vl$mlb $1@atlantis.new s.tpi.pl...[color=blue]
        > I know it.
        > The question concerning inside part.
        >
        > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
        > news:OVQmOgGVDH A.2236@TK2MSFTN GP12.phx.gbl...[color=green]
        > > 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="#"
        > >[/color]
        >[/color]
        onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green]
        > > win001',5,true, true,true);retu rn 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" <konrad007@pocz ta.onet.pl> wrote in message
        > > news:bg1207$1l2 $1@atlantis.new s.tpi.pl...[color=darkred]
        > > > this is link:
        > > >
        > > > <a>href="#"
        > > >[/color]
        > >[/color]
        >[/color]
        onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green][color=darkred]
        > > > win001',5,true, true,true);retu rn false">Slide - pokaz programu -[/color][/color][/color]
        Remonty[color=blue][color=green][color=darkred]
        > > > firmy Delta Software</a>
        > > >
        > > > I want tp use this link with datagrid and
        > > > have problems with #.
        > > >
        > > > Thanks
        > > > Konrad
        > > >
        > > > "Konrad" <konrad007@pocz ta.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
        > > > >
        > > > >
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Konrad

          #5
          Re: href code

          And how to do that using only code behind.

          "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
          news:#9I2PLKVDH A.2068@TK2MSFTN GP11.phx.gbl...[color=blue]
          > Try placing "javascript :" in front like this:
          >
          > <a href="#"
          >[/color]
          onclick="javasc ript:mywin001=o penIt('KartyPra cy_viewlet_swf. html',600,400,n u[color=blue]
          > ll,null,'mywin0 01',5,true,true ,true);return false">Slide - pokaz[/color]
          programu -[color=blue]
          > 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" <konrad007@pocz ta.onet.pl> wrote in message
          > news:bg15vl$mlb $1@atlantis.new s.tpi.pl...[color=green]
          > > I know it.
          > > The question concerning inside part.
          > >
          > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
          > > news:OVQmOgGVDH A.2236@TK2MSFTN GP12.phx.gbl...[color=darkred]
          > > > 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="#"
          > > >[/color]
          > >[/color]
          >[/color]
          onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green][color=darkred]
          > > > win001',5,true, true,true);retu rn false">Slide - pokaz programu -[/color][/color][/color]
          Remonty[color=blue][color=green][color=darkred]
          > > > firmy Delta Software</a>
          > > >
          > > >
          > > > --
          > > > S. Justin Gengo, MCP
          > > > Web Developer
          > > >
          > > > Free code library at:
          > > > www.aboutfortunate.com
          > > >
          > > > "Out of chaos comes order."
          > > > Nietzche
          > > > "Konrad" <konrad007@pocz ta.onet.pl> wrote in message
          > > > news:bg1207$1l2 $1@atlantis.new s.tpi.pl...
          > > > > this is link:
          > > > >
          > > > > <a>href="#"
          > > > >
          > > >[/color]
          > >[/color]
          >[/color]
          onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green][color=darkred]
          > > > > win001',5,true, true,true);retu rn false">Slide - pokaz programu -[/color][/color]
          > Remonty[color=green][color=darkred]
          > > > > firmy Delta Software</a>
          > > > >
          > > > > I want tp use this link with datagrid and
          > > > > have problems with #.
          > > > >
          > > > > Thanks
          > > > > Konrad
          > > > >
          > > > > "Konrad" <konrad007@pocz ta.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
          > > > > >
          > > > > >
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • S. Justin Gengo

            #6
            Re: href code

            Konrad,

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

            MyLink.Attribut es.Add("onClick ",
            onclick="javasc ript:mywin001=o penIt'KartyPrac y_viewlet_swf.h tml',600,400,nu l
            l,null,'mywin00 1',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" <konrad007@pocz ta.onet.pl> wrote in message
            news:bg25d5$klr $1@atlantis.new s.tpi.pl...[color=blue]
            > And how to do that using only code behind.
            >
            > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
            > news:#9I2PLKVDH A.2068@TK2MSFTN GP11.phx.gbl...[color=green]
            > > Try placing "javascript :" in front like this:
            > >
            > > <a href="#"
            > >[/color]
            >[/color]
            onclick="javasc ript:mywin001=o penIt('KartyPra cy_viewlet_swf. html',600,400,n u[color=blue][color=green]
            > > ll,null,'mywin0 01',5,true,true ,true);return false">Slide - pokaz[/color]
            > programu -[color=green]
            > > 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" <konrad007@pocz ta.onet.pl> wrote in message
            > > news:bg15vl$mlb $1@atlantis.new s.tpi.pl...[color=darkred]
            > > > I know it.
            > > > The question concerning inside part.
            > > >
            > > > "S. Justin Gengo" <sjgengo@aboutf ortunate.com> wrote in message
            > > > news:OVQmOgGVDH A.2236@TK2MSFTN GP12.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="#"
            > > > >
            > > >[/color]
            > >[/color]
            >[/color]
            onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green][color=darkred]
            > > > > win001',5,true, true,true);retu rn false">Slide - pokaz programu -[/color][/color]
            > Remonty[color=green][color=darkred]
            > > > > firmy Delta Software</a>
            > > > >
            > > > >
            > > > > --
            > > > > S. Justin Gengo, MCP
            > > > > Web Developer
            > > > >
            > > > > Free code library at:
            > > > > www.aboutfortunate.com
            > > > >
            > > > > "Out of chaos comes order."
            > > > > Nietzche
            > > > > "Konrad" <konrad007@pocz ta.onet.pl> wrote in message
            > > > > news:bg1207$1l2 $1@atlantis.new s.tpi.pl...
            > > > > > this is link:
            > > > > >
            > > > > > <a>href="#"
            > > > > >
            > > > >
            > > >[/color]
            > >[/color]
            >[/color]
            onclick="mywin0 01=openIT('Kart yPracy_viewlet_ swf.html',600,4 00,null,null,'m y[color=blue][color=green][color=darkred]
            > > > > > win001',5,true, true,true);retu rn false">Slide - pokaz programu -[/color]
            > > Remonty[color=darkred]
            > > > > > firmy Delta Software</a>
            > > > > >
            > > > > > I want tp use this link with datagrid and
            > > > > > have problems with #.
            > > > > >
            > > > > > Thanks
            > > > > > Konrad
            > > > > >
            > > > > > "Konrad" <konrad007@pocz ta.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
            > > > > > >
            > > > > > >
            > > > > >
            > > > > >
            > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...