Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to remove thickbox background screen from asp.net page?
    primarykey
    data
    text
    <p>I have a a href tag and a validate method in javascript</p> <p>my aspx code is similar like this</p> <pre><code>&lt;a onclick="validate();" href="PopUpPage.aspx?KeepThis=true&amp;TB_iframe=true&amp;height=150&amp;width=400" class="thickbox" id="AnchorImage" &gt; &lt;img id="ColorImageButton" src="SiteImages.png" runat="server" /&gt; &lt;/a&gt; </code></pre> <p>When clicking on link I need to validate and remove thickbox</p> <p>my javascript is similar like this</p> <pre><code>function validate() { if (document.getElementById('&lt;%=ColorImageButton.ClientID%&gt;').src.indexOf('Red.png') &gt;= 0) { document.getElementById('AnchorImage').removeAttribute('href'); document.getElementById('AnchorImage').removeAttribute('class'); } } </code></pre> <p>And I have two buttons to change image inside the anchor tag. based on Image set by using buttons i am removing the thickbox class. means if it is Green.png i need to show the popup window of thickbox.if Red.png I need to remove or disable thickbox or no action should not take place</p> <pre><code>&lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /&gt; &lt;asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Button" /&gt; protected void Button1_Click(object sender, EventArgs e) { ColorImageButton.Src = "~/SiteImages/Red.png"; } protected void Button2_Click(object sender, EventArgs e) { ColorImageButton.Src = "~/SiteImages/Green.png"; } </code></pre> <p>validate is called when user click on the image inside the anchor tag, popup is not displaying if the condition satisfying. but still the black transparent screen of thickbox is appearing and user need to click on this. how i can solve this? </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