由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Button's refresh problem
相关主题
dynamic change before refreshingclicks by reference
static or else?mouse over
How to get button name? (转载)How to make Internet Explorer Toolbar?
C#编程求助, 500伪币酬谢, 在线等.Net Thread question
Drawbacks of using static[转载] 问一个javascript 和 .NET 的问题
datagrid helpHelp ASP.NET!!!
Free Video Training: ASP.NET MVC 3 Features一个非常奇怪的问题
How to check a linked table?how to let button response 'return' key?
相关话题的讨论汇总
话题: button话题: click话题: page话题: refresh话题: load
进入DotNet版参与讨论
1 (共1页)
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(

1 (共1页)
进入DotNet版参与讨论
相关主题
how to let button response 'return' key?Drawbacks of using static
C# problemsdatagrid help
mono问题请教Free Video Training: ASP.NET MVC 3 Features
怎么样才能让control随window的大小变化而变化?How to check a linked table?
dynamic change before refreshingclicks by reference
static or else?mouse over
How to get button name? (转载)How to make Internet Explorer Toolbar?
C#编程求助, 500伪币酬谢, 在线等.Net Thread question
相关话题的讨论汇总
话题: button话题: click话题: page话题: refresh话题: load