{"id":3732,"date":"2014-03-29T09:21:14","date_gmt":"2014-03-29T09:21:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/include-jquery-source-file-in-asp-net-collection-of-common-programming-errors\/"},"modified":"2014-03-29T09:21:14","modified_gmt":"2014-03-29T09:21:14","slug":"include-jquery-source-file-in-asp-net-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/include-jquery-source-file-in-asp-net-collection-of-common-programming-errors\/","title":{"rendered":"include jQuery source file in asp.net-Collection of common programming errors"},"content":{"rendered":"<p>I have a drop down list and some styles applied to it from two js files, included in head like:<\/p>\n<pre><code> \n\n<\/code><\/pre>\n<p>All it&#8217;s working great when the page is loading for the first time.<\/p>\n<p>But when i do an ajax request on this page the styles applied before, are lost, so i have included the js src files from the code behing like:<\/p>\n<pre><code> protected void Page_PreRender(object sender, EventArgs e)\n{\n    loadJs();\n}\n\nprivate void loadJs()\n{\n    ScriptManager.RegisterClientScriptInclude(this,\n        typeof(Page),\n        \"AlertScript\",\n        ResolveClientUrl(\"~\/Site\/js\/jquery.jqtransform.js\"));\n    ScriptManager.RegisterClientScriptInclude(this,\n       typeof(Page),\n       \"AlertScript2\",\n       ResolveClientUrl(\"~\/Site\/js\/functions.js\"));\n}\n<\/code><\/pre>\n<p>But&#8230;it&#8217;s still not working although i see in the broswer &#8211; view source that the js files are loaded correctly in the body&#8230;<\/p>\n<p>Do you have any suggestion?<\/p>\n<p>Thanks in advance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a drop down list and some styles applied to it from two js files, included in head like: All it&#8217;s working great when the page is loading for the first time. But when i do an ajax request on this page the styles applied before, are lost, so i have included the js [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3732","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3732"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3732\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}