Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 330971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:43:52+00:00 2026-05-12T09:43:52+00:00

I am registering the script on my page load event for the thickbox page

  • 0

I am registering the script on my page load event for the thickbox page to open. But some time only the gray background appears and not the thickbox page. Let me know if I am missing anything. Below is the code for registering the thickbox. Any help would be greatly appreciated.

 Dim sb As New StringBuilder()
            sb.AppendLine("<script type=""text/javascript"">")
            sb.AppendLine("jQuery(document).ready(function($)")
            sb.AppendLine("{")
            sb.AppendLine("tb_show(null, ""Thickbox.aspx?TB_iframe=true&height=500&width=500&modal=true"", null)")
            sb.AppendLine("});")
            sb.AppendLine("</script>")
            Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "RegisterWidgetScript", sb.ToString())

I am new to the forum..let me know if any similar thread has the solution?

Thanks
Gabi

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:43:52+00:00Added an answer on May 12, 2026 at 9:43 am
    I have fixed this issue.
    
    In IE the imgLoader variable is null since I am calling the tb_show from the asp.net code behind. So I added the below code to check if the object is null and then initialize and assign the image url.
    
    //Check if the image loader is null, this occurs when we call the tb_show method from the code behind
        if ( typeof imgLoader === 'undefined')
                {
                    imgLoader = new Image();// preload image
                          imgLoader.src = tb_pathToImage;//Animated loader gif image.
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET 2.0 provides the ClientScript.RegisterClientScriptBlock() method for registering JavaScript in an ASP.NET Page. The
On my page in the Page_Load event I add a collection of strings to
I'm trying to load a page that is basically an edit form inside a
I'm having a difficult time registering my types for Unity 2 in my unit
I found an example on registering DLLs, Registering an Assembly for COM Interop in
I have been trying to determine a best case solution for registering a COM
This is kind of a weird problem, but I have to create a search
I want to alert 1 registering the scripts in this order ScriptManager.RegisterClientScriptBlock(this, this.GetType(), a,
I am registering a custom post type like so: register_post_type('agent_info', array( 'labels' => array('name'
I was thinking about Registering an Application to a URL Protocol and I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.