开发者

how to raise inner repeater itemcommand event

Here is what my current logic looks like

<asp:repeater>

    <asp:button id="btnMain"/>

  <asp:repeater>
     <asp:button id="btnChild"/>
  </asp:repeater>

</asp:repeater>

On click of "btnchild", I need to open up user control in overlay to do some开发者_Python百科 of kind of verification and once user provide the information, I need to further process the "btnChild" command.

The logic is kind of pausing the itemcommand event and require some user verification and move forward with the itemcommand on user verification.

So how can i raise repeater's itemcommand event on submitting overlay data?


Well, you can't pause the item command event; essentially, the click of the dialog that displays the user confirmation must then trigger the rest of the action. This means you have to store enough information about the object in the command (such as storing keys in viewstate or session related to the objects being evaluated), and re-query any data or get the values from session/viewstate and continue on with the process.

HTH.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜