using a querystring

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

    using a querystring

    Hey group !

    I have a page where I have a newssection. Each line is a link.
    Is it possible to use a page news.aspx where I work with a querystring to
    refer to the page ? example: news.aspx?id=3
    On my news.aspx page I have some usercontrols (header.ascx, leftside.ascx,
    rightside.ascx, footer.ascx and newsmiddle.ascx ).

    I want to put the news from the id in the querystring in the newsmiddle.ascx
    component.
    How can I do that so that the right newsheadline for each id can be used ?

    Has somebody tips or examples how to do that ?

    thx in advance !

    gr

    Bernd


  • Jody Fisher

    #2
    Re: using a querystring

    Your header information should also be available to your web controls ie
    request.queryst ring("id").

    Just put the routine in the web user control and it should work without a
    problem

    Regards

    Jody

    "Bernie V" <bernd.vantyghe m@pandora.be> wrote in message
    news:Odyszo7mDH A.2364@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hey group !
    >
    > I have a page where I have a newssection. Each line is a link.
    > Is it possible to use a page news.aspx where I work with a querystring to
    > refer to the page ? example: news.aspx?id=3
    > On my news.aspx page I have some usercontrols (header.ascx, leftside.ascx,
    > rightside.ascx, footer.ascx and newsmiddle.ascx ).
    >
    > I want to put the news from the id in the querystring in the[/color]
    newsmiddle.ascx[color=blue]
    > component.
    > How can I do that so that the right newsheadline for each id can be used[/color]
    ?[color=blue]
    >
    > Has somebody tips or examples how to do that ?
    >
    > thx in advance !
    >
    > gr
    >
    > Bernd
    >
    >[/color]


    Comment

    • Bernie V

      #3
      Re: using a querystring

      Thx Jody !
      I still have 1 question: how can I use html code to make the layout of that
      page at runtime ? (example: to place a picture on the page, but there can't
      be always a picture in the newspage) Can I do that in the same routine or is
      there another trick to do that ?

      Or do I have to do that with literal components like: Literal.Text =
      "<h5>Test</h5><br>This is a test";
      Without literals I don't know how to position my code.

      Am I missing something ?

      grz

      Bernd



      "Jody Fisher" <jfisher@clayto nutz.com.dontsp amme> schreef in bericht
      news:%23DABF%23 BnDHA.1004@TK2M SFTNGP09.phx.gb l...[color=blue]
      > Your header information should also be available to your web controls ie
      > request.queryst ring("id").
      >
      > Just put the routine in the web user control and it should work without a
      > problem
      >
      > Regards
      >
      > Jody
      >
      > "Bernie V" <bernd.vantyghe m@pandora.be> wrote in message
      > news:Odyszo7mDH A.2364@TK2MSFTN GP11.phx.gbl...[color=green]
      > > Hey group !
      > >
      > > I have a page where I have a newssection. Each line is a link.
      > > Is it possible to use a page news.aspx where I work with a querystring[/color][/color]
      to[color=blue][color=green]
      > > refer to the page ? example: news.aspx?id=3
      > > On my news.aspx page I have some usercontrols (header.ascx,[/color][/color]
      leftside.ascx,[color=blue][color=green]
      > > rightside.ascx, footer.ascx and newsmiddle.ascx ).
      > >
      > > I want to put the news from the id in the querystring in the[/color]
      > newsmiddle.ascx[color=green]
      > > component.
      > > How can I do that so that the right newsheadline for each id can be[/color][/color]
      used[color=blue]
      > ?[color=green]
      > >
      > > Has somebody tips or examples how to do that ?
      > >
      > > thx in advance !
      > >
      > > gr
      > >
      > > Bernd
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...