Skip to content

Populate a javascript message box

Chevy Mark Sunderland

Asked Nov 14, 2012, 11:29 PM EST2 answers
Share
LinkedInX
hello there.

this is the code behind from asp net page, I don't have error.

I have two questions:
  • Why when you update the value of the pieces in the gridview doesn't refresh the data required by the update query ?
  • to display correct update data I need refresh the web page...
  • Why RegisterClientScriptBlock doesn't work in GridView1_RowUpdated ?
Could you please help?
Thanks you very much for your help.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Suthish Nair
    0
    ScriptManager.RegisterClientScriptBlock do not work when you do a callbacks.
    When RegisterClientScriptBlock is used, the JavaScript get injected early in page load before its called and loaded.
    This is how .NET callbacks works, its' not an issue of grid view.
    Try with RegisterStartupScript.
    0
  • 0
    thank you fo reply and suggestion.
    this is the new code behind, but I have the same problem... 
    0