Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, Your code should work fine, Just make sure that your info1 and info2 are defined and revise your logic in loadAdditionalInfoDialog. just for test put an alert in it. and also you could make both calls in one block.</p> <p><strong>Update:</strong> Here is what i understand you want to do from your comments:</p> <p>In you repeater template add a hidden field</p> <pre><code> &lt;asp:HiddenField ID="hdf" runat="server" /&gt; </code></pre> <p>In your code behind you could try something like this </p> <pre><code> foreach (RepeaterItem item in cdcatalog.Items) { // Put your condition here like if (pr.AdditionalFieldsEnabled == true) in my case to make it simple I'm just using the index if (item.ItemIndex == 1) { //Get the hidden fiels to save your parameters for the next call you can add multiple parameters 1;2;3;4 and read it using js HiddenField hdf = item.FindControl("hdf") as HiddenField; hdf.Value = "info2"; // Pass the client ID for the hidden field so you can access it in loadAdditionalInfoDialog to retrieve parameter ScriptManager.RegisterStartupScript(this.Page, this.GetType(), String.Format("temp_{0}",item.ItemIndex), String.Format("&lt;script&gt;loadAdditionalInfoDialog('info1',{0});&lt;/script&gt;",hdf.ClientID), false); } } </code></pre> <p>and in your script you can do something like this:</p> <pre><code> &lt;script type="text/javascript"&gt; function loadAdditionalInfoDialog(param, hdfId) { // Do whatever yout want here var info = prompt("Please enter ", param); if (info != null) { // Do whatever you want with the info you collected // This code should be in your ok click button to check whether you should call the second window. if (info !== undefined) { loadAdditionalInfoDialog(hdfId.value); } } } &lt;/script&gt; </code></pre> <p>I hope this could help.</p>
    singulars
    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.
    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