HtmlAnchor postback

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

    HtmlAnchor postback

    Hi,

    I am trying to implement a postback from a control with a textbox and anchor
    to perform a search. I cannot use link button due to javascript being turned
    off. Is there a way of implementing postback from an anchor tag?

    Jim
  • Y2KPRABU

    #2
    RE: HtmlAnchor postback

    attach the javacript to the href tag
    href="javascrip t:fndosome();"
    or in server side also
    ctl.attributes. Add("href","jav ascript:fndosom e();")
    --
    Y2KPRABU, MCP, INDIA
    WEB APPS


    "Jim Reynolds" wrote:
    Hi,
    >
    I am trying to implement a postback from a control with a textbox and anchor
    to perform a search. I cannot use link button due to javascript being turned
    off. Is there a way of implementing postback from an anchor tag?
    >
    Jim

    Comment

    • Jim Reynolds

      #3
      RE: HtmlAnchor postback

      but javascript is turned off how would that work please?

      "Y2KPRABU" wrote:
      attach the javacript to the href tag
      href="javascrip t:fndosome();"
      or in server side also
      ctl.attributes. Add("href","jav ascript:fndosom e();")
      --
      Y2KPRABU, MCP, INDIA
      WEB APPS
      >
      >
      "Jim Reynolds" wrote:
      >
      Hi,

      I am trying to implement a postback from a control with a textbox and anchor
      to perform a search. I cannot use link button due to javascript being turned
      off. Is there a way of implementing postback from an anchor tag?

      Jim

      Comment

      • bruce barker \(sqlwork.com\)

        #4
        Re: HtmlAnchor postback

        if javascript is disabled, the only html control that will postback is a
        submit or image button. (asp:button). anchors will on perform a get, and not
        postback data.

        -- bruce (sqlwork.com)



        "Jim Reynolds" <JimReynolds@di scussions.micro soft.comwrote in message
        news:BEB44FDC-BD42-48DD-B1A4-3B39F1C980B8@mi crosoft.com...
        Hi,
        >
        I am trying to implement a postback from a control with a textbox and
        anchor
        to perform a search. I cannot use link button due to javascript being
        turned
        off. Is there a way of implementing postback from an anchor tag?
        >
        Jim

        Comment

        • Y2KPRABU

          #5
          RE: HtmlAnchor postback

          do a formname.submit
          ...
          also does it mean no client side script works like vbscript, jscript etc
          just a thought
          --
          Y2KPRABU, MCP, INDIA
          WEB APPS


          "Jim Reynolds" wrote:
          but javascript is turned off how would that work please?
          >
          "Y2KPRABU" wrote:
          >
          attach the javacript to the href tag
          href="javascrip t:fndosome();"
          or in server side also
          ctl.attributes. Add("href","jav ascript:fndosom e();")
          --
          Y2KPRABU, MCP, INDIA
          WEB APPS


          "Jim Reynolds" wrote:
          Hi,
          >
          I am trying to implement a postback from a control with a textbox and anchor
          to perform a search. I cannot use link button due to javascript being turned
          off. Is there a way of implementing postback from an anchor tag?
          >
          Jim

          Comment

          Working...