English 中文(简体)
页: 1
原标题:asp repeater itemcommand not working on second click

I have a repeater which I bind the data using Bind method from the database. There is a Asp:Button with an onclientclick and onclick event. In OnClientClick I open a new window and onclick I am adding the data to the database. This works perfectly on the first Page load. After first click on any of the buttons in the repeater, the click events stops working on subsequent clicks.

我花了几个小时的时间来寻找同样的解决办法,在我看来,如果我错了需要做的工作的话,他可以指导我。

P.S:我的申请是AJAX 授权的,使用WCF和J RequestRY

Thanks & Regards, Phani...

问题回答

从来没有 我是靠自己解决问题的。 对于试图解决同一问题的其他人来说,这里的解决办法是:

下面的法典打开了一个新的窗口,把窗户外围堵塞起来。

OnClientClick of the button written Javascript such as要打开一个新的窗口并更新母窗(I必须这样做,因为项目共同活动在更新<>之前不会发射)。

OnClientClick = "target= _blank ; setTimeout("location.reload(true);", timeout);

Phanic





相关问题
asp: Radiobutton List inside a repeater

I am trying to bind a radiobutton list inside a repeater. So for example my output will be : Group1 Group1 Group1 Group2 Group2 Group2 Group3 Group3 Group3 I need the user to be able to select ...

Xpath within ItemDataBound for Repeater

Okay so I m pulling in an XML feed from feedburner, using an XMLDataSource and a repeater. <asp:Repeater ID="rptrEvents" OnItemDataBound="rptrEvents_ItemDataBound" DataSourceID="XmlDataSource1" ...

ASP.Net Repeater Header Per Group (i.e. Month)

I have a datasource which contains dated items per row. These will be bound to the repeater and ordered by date. I d like to present each month as a seperate table when rendered but is there a way to ...

Change text of a linkbutton in a repeater

I have a repeater which displays comments related to a post. I want to add some functionality where when the user click on the link it goes from: report this post to post has been flagged how do ...

Real time price x quantity calculator

I m using ASP.NET and a Repeater control to display my data. The data I have is in stored in a List. How would I implement a simple calculator that is affected in real time? Would I have to use AJAX, ...