Search code examples
c#asp.netsharepointpostbackasynchronous-postback

Calling postback in asp.net programmatically


I am using spgridview with spgridviewpager in update panel. I need to postback using c# in aspx page. I used button field in the spgridview. When i clicked on the button field, i need to raise the postback event using c# or javascript.

Can any have an idea how to do it programmatically?


Solution

  • I think you can use triggers after the content template of update panel.

    One more simple suggestion:

    If you just want to cause a postback and to do nothing after postback, simply double click the button in the design view, you will get an onbuttonclick event generated in the code behind page. Don't write anything inside that button click event block. The page will get posted onclicking the button. If you want to implement something, write the code inside the button click event.