Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Is this a bug?

Is this a bug?

Scheduled Pinned Locked Moved ASP.NET
javascriptdesignhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FruitBatInShades
    wrote on last edited by
    #1

    After pending a while trying to figuire out why the ImageButton does not fire events I figuired out it is not calling the postback. Is this by design or is there a reason for it? ImageButton LinkButton [X](javascript:__doPostBack('EditItems1$dl$_ctl1$LinkButton1',''))

    A 1 Reply Last reply
    0
    • F FruitBatInShades

      After pending a while trying to figuire out why the ImageButton does not fire events I figuired out it is not calling the postback. Is this by design or is there a reason for it? ImageButton LinkButton [X](javascript:__doPostBack('EditItems1$dl$_ctl1$LinkButton1',''))

      A Offline
      A Offline
      Andy Smith
      wrote on last edited by
      #2

      There is no bug in IMageButton. input type="image" does not call the __doPostBack function because it is one of the html4 elements which automatticly posts the form when clicked. As far as events not firing, the following page works fine for me. <script runat="server" language="c#" > protected void Image_Click( Object sender, ImageClickEventArgs e ) { Result.Text = "Clicked"; } </script> <html><body><form runat="server" > <asp:ImageButton runat="server" OnClick="Image_Click" ImageUrl="foo.jpg" /> <asp:Label runat="server" Id="Result" EnabledViewState="False" /> </form></body></html>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups