Reload a .js file on selectedindex change event of dropdown in asp.net
<p>I have a dropdown inside update panel. On the selected index change event, i need to execute a .js file using c# or javascript
How can i do this ?</p>



<pre><code>&lt;asp:UpdatePanel ID="UP_Social_Ddl" runat="server"&gt;
  &lt;ContentTemplate&gt;
     &lt;div class="styled-select"&gt;
      &lt;asp:Label runat="server" 
         ID="Label2" 
         Font-Size="Small" 
         ToolTip="Social : 'ON' will post your activity on this page to your FaceBook Wall."   Text="Social :" 
         Style="vertical-align: bottom;" /&gt;
          &lt;asp:DropDownList 
             ID="ddlSocialSwitch" 
             runat="server" 
             AutoPostBack="true" 
             Style="vertical-align: middle;" 
              ToolTip="Social : ON will post your activity on this page to your FaceBook Wall."   
              OnSelectedIndexChanged="ddlSocialSwitch_SelectedIndexChanged"&gt;
          &lt;/asp:DropDownList&gt;
       &amp;nbsp;&lt;a valign="bottom" onclick="logout_fb" href="#" id="auth-logoutlink"&gt;&lt;img valign="bottom" src="facebookLogOutButton.png"/&gt;&lt;/a&gt;
       &lt;asp:Label ID="lbl" Visible="false" runat="server"&gt;&lt;/asp:Label&gt;
      &lt;/div&gt;
  &lt;/ContentTemplate&gt;
</code></pre>

<p></p>
