hyperlink/button

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

    #1

    hyperlink/button

    Hi.

    I want to insert an hyperlink/button for loading another
    page, but I need to store some data in this operation too,
    but I don't think the HyperLink web control has
    a "onclick" event, and I have not yet found a way to load
    a Page in C#.

    Please help me...

    Thanks in advance,
    Ingeborg

  • Showjumper

    #2
    Re: hyperlink/button

    Yopu can use a hyperlink and pass info to the new page via the query string.
    And then in the new page do a request.params to get the info from the
    querystring. You only want to pass the info via the querystring if it is not
    sensitive info. If it is a credit card info or thelike you'll need to do
    another way.
    "Ingeborg" <nobody@nowhere .net> wrote in message
    news:041401c342 80$f560ba30$a30 1280a@phx.gbl.. .[color=blue]
    > Hi.
    >
    > I want to insert an hyperlink/button for loading another
    > page, but I need to store some data in this operation too,
    > but I don't think the HyperLink web control has
    > a "onclick" event, and I have not yet found a way to load
    > a Page in C#.
    >
    > Please help me...
    >
    > Thanks in advance,
    > Ingeborg
    >[/color]


    Comment

    • Jos Branders

      #3
      Re: hyperlink/button

      Ingeborg wrote:[color=blue]
      > Hi.
      >
      > I want to insert an hyperlink/button for loading another
      > page, but I need to store some data in this operation too,
      > but I don't think the HyperLink web control has
      > a "onclick" event, and I have not yet found a way to load
      > a Page in C#.[/color]

      Use a LinkButton instead. Linkbuttons have an OnClick event,
      but they look like a hyperlink.

      At the end of the event handler, use either:
      Response.Redire ct("newfile.asp x")
      or
      Server.Transfer ("newfile.aspx" )
      --

      Jos Branders


      Comment

      Working...