Note that there are some explanatory texts on larger screens.

plurals
  1. POThe last time window popped out overrides those earlier in c#
    primarykey
    data
    text
    <p>Not sure My title is correct or not actually.</p> <p>I have a button, when I click on it, it will pop up a small window (based on data in a repeater) to let the user key-in information and click the <code>OK</code> button to proceed to next step. </p> <p>Below is my code of the <code>Button.Click</code> :</p> <pre><code>protected void btnRedeemAll_Click(object sender, EventArgs e) { foreach( RepeaterItem itm in repGiftResults.Items ) { if (pr.AdditionalFieldsEnabled == true) { AdditionalInfoGiftProcess(pid, giftId, txtQty, txtToken); } } } </code></pre> <p>divAdditionalInfo is a division ID, divAdditionalInfo.Style["visibility"] = "visible"; and divAdditionalInfo.Style["display"] = "table-cell"; is to prompt out a window to let user key in information and click on "OK" button to continue : The following the the code of AdditionalInfoGiftProcess() function :</p> <pre><code>public void AdditionalInfoGiftProcess(int productID, int giftID, TextBox txtQty, UserControls_TokenControl txtToken) { /* Some logic here */ //generate pop up window divAdditionalInfo.Style["visibility"] = "visible"; divAdditionalInfo.Style["display"] = "table-cell"; } </code></pre> <p>And below is my code of <code>divAdditionalInfo</code> in html :</p> <pre><code>&lt;div id="divAdditionalInfo" class="BlackCover" style="VISIBILITY:hidden; DISPLAY:none;" runat="server"&gt; &lt;!-- html code that generate the pop out window. consist of text box and `OK` button, and "Cancel" button. --&gt; &lt;/div&gt; </code></pre> <p>When I click on <code>temoBtn</code> button, I only get 1 time window(div) pop out, means I only can enter 1 time information and click on <code>OK</code> button. </p> <p>I want the window(div) to <strong>pop out 3 times one by one</strong>, so that I can key in information for 3 times and click on the <code>OK</code> button 1 by 1. </p> <p>But, the last time window pop out seen like already override those early pop out window. </p> <p>Any idea to solve this?</p> <p>p.s.: Actually you can ignore the html code. It is just a code to generate the pop out window. Means, when I click on <code>tempBtn</code> button, the division with <code>id = "divAdditionalInfo"</code> will prompt out as a window to let the user to key-in info and click on the <code>OK</code> button. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload