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. Doing a sync(normal) postback from and gridview inside an ajax updatepanel

Doing a sync(normal) postback from and gridview inside an ajax updatepanel

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netalgorithmshelp
1 Posts 1 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.
  • B Offline
    B Offline
    Bogdan Damian
    wrote on last edited by
    #1

    In the last days I started to add some ajax functionality to an existing non ajax application using aps.net ajax. One of the tasks was to move an existing gridview into an update panel so that it can be refreshed without page loading. The problem that I’ve encountered was that I couldn’t do a normal (sync) postback from the grid view. So I lost a half a day searching for an answer :(( . The solution is to use the ScriptManager RegisterPostBackControl function and register the links/buttons for which you need normal postback here. foreach (GridViewRow row in ClaimGridView.Rows) { Control c = (Control)row.Cells[0].FindControl("myctrl"); ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(c); } PS: :confused: I also tried using another UpdatePanel for my column and adding an asp:PostBackTrigger but it didn't not work.

    Bogdan Developer e-Projects ro

    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