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. imageButton in a gridview

imageButton in a gridview

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsysadminsecurity
3 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.
  • A Offline
    A Offline
    Assaf82
    wrote on last edited by
    #1

    Hello I try to use an Imagebutton instead of a LinkButton in my gridview to select and to delete a specific row but when using the asp.net application and press the image it will give this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. " Please help And tahnks in advance

    Assaf

    C 1 Reply Last reply
    0
    • A Assaf82

      Hello I try to use an Imagebutton instead of a LinkButton in my gridview to select and to delete a specific row but when using the asp.net application and press the image it will give this error: "Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. " Please help And tahnks in advance

      Assaf

      C Offline
      C Offline
      Chetan Patel
      wrote on last edited by
      #2

      Add ====> EnableEventValidation="False" In <%@ Page

      Best Regards, Chetan Patel

      A 1 Reply Last reply
      0
      • C Chetan Patel

        Add ====> EnableEventValidation="False" In <%@ Page

        Best Regards, Chetan Patel

        A Offline
        A Offline
        Assaf82
        wrote on last edited by
        #3

        Thanks, now it didn't give me the error but as if i didn't do anything the select event is not fire just the load event is fire any help will be greatly appreciate Thanks in Advance

        Assaf

        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