开发者

Calling postback in asp.net programmatically

I am using spgridview with spgridviewpager in update panel. I need to po开发者_运维百科stback 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?


Since there are some quite good articles on the web explaining this, let me answer your question with a link:

  • How to call Postback from Javascript


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.


go to the button property u will find postback url .. if not then use rowCommand to get the button event rise

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜