双提交 [英] Double submit

查看:77
本文介绍了双提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到只能提交一次的按钮?

Ajax控件包是否有这样的按钮?

-

Arne Garvander

认证极客

专业数据家伙

Where can I find a button that can only be submitted only once?
Does the Ajax controlkit have such a button ?
--
Arne Garvander
Certified Geek
Professional Data Dude

推荐答案

你可以放任何Ajax更新面板中的按钮,它将执行此操作。或者Page_Load中的
你总是可以扔一个if(Page.IsPostBack({return;}

" Arne Garvander"< Ar ****** *****@discussions.microsoft.com写信息

新闻:01 ************************** ******** @ microsof t.com ...
You could put any button in the Ajax update panel and it will do this. Or
in the Page_Load you could always throw in a if(Page.IsPostBack( { return; }
"Arne Garvander" <Ar***********@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...

我在哪里可以找到只能提交一次的按钮?

Ajax控件是否有这样的按钮?

-

Arne Garvander

认证极客

专业数据Dude
Where can I find a button that can only be submitted only once?
Does the Ajax controlkit have such a button ?
--
Arne Garvander
Certified Geek
Professional Data Dude


" Arne Garvander"< Ar *********** @ discussion.microsoft.comwrote in message

新闻:01 ********************************** @ microsof t.com ...
"Arne Garvander" <Ar***********@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...

我在哪里可以找到只能提交一次的按钮?
Where can I find a button that can only be submitted only once?



如果你的意思是如何阻止一个按钮被点击两次,Anthem,一个围绕Ajax的薄的包装器,确切地说这:
http://www.anthemdotnet.com/examples。 ..roperties.aspx 通过

EnabledDuringCallBack属性。

-

Mark Rae

ASP.NET MVP
http://www.markrae.net

If you mean how to stop a button from being clicked twice, Anthem, the thin
wrapper around Ajax, has exactly this:
http://www.anthemdotnet.com/examples...roperties.aspx via the
EnabledDuringCallBack property.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


我试过

如果是IsPostBack那么

返回

结束如果

绝对没有什么可以防止多次提交。

为什么我认为更新面板技巧会做什么?


-

Arne Garvander

认证极客

专业资料家伙

" Lucid"写道:
I tried
If IsPostBack Then
Return
End If
It did absolute nothing to prevent multiple submit.
Why would I think that the update panel trick would do anything?

--
Arne Garvander
Certified Geek
Professional Data Dude
"Lucid" wrote:

您可以在Ajax更新面板中放置任何按钮,它将执行此操作。或者Page_Load中的
你总是可以扔一个if(Page.IsPostBack({return;}

" Arne Garvander"< Ar ****** *****@discussions.microsoft.com写信息

新闻:01 ************************** ******** @ microsof t.com ...
You could put any button in the Ajax update panel and it will do this. Or
in the Page_Load you could always throw in a if(Page.IsPostBack( { return; }
"Arne Garvander" <Ar***********@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...

我在哪里可以找到只能提交一次的按钮?

Ajax控件是否有这样的按钮?

-

Arne Garvander

认证极客

专业数据Dude
Where can I find a button that can only be submitted only once?
Does the Ajax controlkit have such a button ?
--
Arne Garvander
Certified Geek
Professional Data Dude


这篇关于双提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆