databind expression for url with 2 params?

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

    databind expression for url with 2 params?

    Hi,

    I have a datagrid, that needs a HyperLink Column.

    The url for this link has 2 parameters in it, eg


    The values for param1 and 2 are in my datasource. What databinding
    expression should I use?

    I don't want to have my datasource contain the url, as this is a
    presentation layer issue, not data issue.

    Thanks
    Martin


  • Martin Marinov

    #2
    Re: databind expression for url with 2 params?

    In this case I would suggest you to use TemplateColumn, not HyperLink Column
    Look at this article:


    Regards,
    Martin

    "Martin" <x@y.z> wrote in message
    news:uxXka#gSEH A.3756@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hi,
    >
    > I have a datagrid, that needs a HyperLink Column.
    >
    > The url for this link has 2 parameters in it, eg
    > www.mydomain.com/index.aspx?param1=b&param2=a
    >
    > The values for param1 and 2 are in my datasource. What databinding
    > expression should I use?
    >
    > I don't want to have my datasource contain the url, as this is a
    > presentation layer issue, not data issue.
    >
    > Thanks
    > Martin
    >
    >[/color]


    Comment

    • Martin

      #3
      Re: databind expression for url with 2 params?

      Thanks Martin


      "Martin Marinov" <memmarinov@mec rossroad.bg> wrote in message
      news:upPQPMhSEH A.3692@TK2MSFTN GP10.phx.gbl...[color=blue]
      > In this case I would suggest you to use TemplateColumn, not HyperLink[/color]
      Column[color=blue]
      > Look at this article:
      > http://www.ftponline.com/vsm/2002_08...tips/esposito/
      >
      > Regards,
      > Martin
      >
      > "Martin" <x@y.z> wrote in message
      > news:uxXka#gSEH A.3756@TK2MSFTN GP11.phx.gbl...[color=green]
      > > Hi,
      > >
      > > I have a datagrid, that needs a HyperLink Column.
      > >
      > > The url for this link has 2 parameters in it, eg
      > > www.mydomain.com/index.aspx?param1=b&param2=a
      > >
      > > The values for param1 and 2 are in my datasource. What databinding
      > > expression should I use?
      > >
      > > I don't want to have my datasource contain the url, as this is a
      > > presentation layer issue, not data issue.
      > >
      > > Thanks
      > > Martin
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Saravana [MVP]

        #4
        Re: databind expression for url with 2 params?

        Check out this also,


        --
        Saravana
        Microsoft MVP - ASP.NET




        "Martin" <x@y.z> wrote in message
        news:uxXka#gSEH A.3756@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Hi,
        >
        > I have a datagrid, that needs a HyperLink Column.
        >
        > The url for this link has 2 parameters in it, eg
        > www.mydomain.com/index.aspx?param1=b&param2=a
        >
        > The values for param1 and 2 are in my datasource. What databinding
        > expression should I use?
        >
        > I don't want to have my datasource contain the url, as this is a
        > presentation layer issue, not data issue.
        >
        > Thanks
        > Martin
        >
        >[/color]


        Comment

        Working...