t*****l 发帖数: 121 | 1 I used a web server site button on a page. Every time I click this button,
it will refresh the page first, then go to the Button_Click() function. How
can I let it execute Button_Click() first then refresh the page? Thanks. |
a9 发帖数: 21638 | 2 ajax
How
【在 t*****l 的大作中提到】 : I used a web server site button on a page. Every time I click this button, : it will refresh the page first, then go to the Button_Click() function. How : can I let it execute Button_Click() first then refresh the page? Thanks.
|
r****y 发帖数: 26819 | 3 Principly Page_Load will be called before Click event method. So you need to
put some code in if(!Postback) block in Page_Load.
To do something on client side before getting into Page_Load, use javascript.
How
【在 t*****l 的大作中提到】 : I used a web server site button on a page. Every time I click this button, : it will refresh the page first, then go to the Button_Click() function. How : can I let it execute Button_Click() first then refresh the page? Thanks.
|
t*****l 发帖数: 121 | 4 Thanks. What if I want to force the page to be refreshed after button_click(
)?
What command can I use?
to
javascript.
【在 r****y 的大作中提到】 : Principly Page_Load will be called before Click event method. So you need to : put some code in if(!Postback) block in Page_Load. : To do something on client side before getting into Page_Load, use javascript. : : How
|
r****y 发帖数: 26819 | 5 Page.Response.Redirect(Page.Request.Url.ToString(), true);
click(
【在 t*****l 的大作中提到】 : Thanks. What if I want to force the page to be refreshed after button_click( : )? : What command can I use? : : to : javascript.
|
a9 发帖数: 21638 | 6 看你们这一问一答太好玩了。
【在 r****y 的大作中提到】 : Page.Response.Redirect(Page.Request.Url.ToString(), true); : : click(
|
a9 发帖数: 21638 | 7 你先弄清他说的refresh是什么意思。
【在 r****y 的大作中提到】 : Page.Response.Redirect(Page.Request.Url.ToString(), true); : : click(
|