Question : JQuery is disabled by partial postbacks

The references I have to javascript scripts are disabled when I execute a partial postback.
Having looked around, I found that I have to reload the scripts when I do this, which is annoying.
So I have the code below, which I call within the event code of a partial postback.
Now it works, but I get a javascript error.
When I look at ViewSource (see below the code), the error is on the line which says;
 //
What is causing this, and how do I fix it?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
private void ReloadScripts()
    {
        string[] jQueryScripts = {
            "JQuery/jquery.bgiframe.js"
            , "JQuery/jquery-ui-1.7.2.custom.min.js"};
        string linkCSS = "";
 
        ScriptManager.RegisterClientScriptBlock(this, Page.GetType(), "uniquekey0", linkCSS, true);
        ScriptManager.RegisterClientScriptInclude(this, Page.GetType(), "uniquekey1", jQueryScripts[0]);
        ScriptManager.RegisterClientScriptInclude(this, Page.GetType(), "uniquekey2", jQueryScripts[1]);
        ScriptManager.RegisterStartupScript(this, Page.GetType(), "uniquekey3", BOL.DatePickerScript(), true);
    }
---------------View Source of page---------------------------------

 
 

 
 

 



   
   

Random Solutions  
 
programming4us programming4us