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

  1. #1

    Default 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

    Ingeborg Guest

  2. Similar Questions and Discussions

    1. Help Making a form's Submit button into a Hyperlink,Please
      On my real estate website, I would like to require visitors to sign a guest book before being able to link to the county MLS system to search for...
    2. Hyperlink for Button Image
      I have a 2 state button with an up.gif and a down.gif with behavior set for mouseover. Multiple hotspots were set in FW - a circle with rectangle...
    3. HELP WITH HYPERLINK ON BUTTON!!!
      Hey all i was wonderring if u could help me with a problem I am having. i am making a site for a friend and i have a flash button on the main page...
    4. Dynamically Hyperlink and Event Handler for the Hyperlink ?
      Hi, I´m creating an Hyperlink dynamically for my DataGrid: HyperLink hl = new HyperLink(); hl.Text = "MyLink"; hl.NavigateUrl = "#";...
    5. Determining if a hyperlink button to external site has been clicked.
      You could have the hyperlink button set a hidden text field that you could inspect on postback, or have the hyperlink itself trigger the postback...
  3. #2

    Default 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:041401c34280$f560ba30$a301280a@phx.gbl...
    > 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 Guest

  4. #3

    Default Re: hyperlink/button

    Ingeborg wrote:
    > 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#.
    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.Redirect("newfile.aspx")
    or
    Server.Transfer("newfile.aspx")
    --

    Jos Branders


    Jos Branders 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