Javascript not loaded on postback

2 posts, 0 answers
  1. navyateja
    navyateja avatar
    17 posts
    Member since:
    Jan 2007

    Posted 14 Jan 2015 Link to this post


    I have a user control with a combox on it. There is some javascript defined on the user control.

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RSSA.ascx.cs"
    Inherits="Auto.RSSA" %>

    <script type="text/javascript">
          function Function1() {
    <div class="test">
    <telerik:RadComboBox ID="SSSL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="SSSL_SelectedIndexChanged" OnClientSelectedIndexChanged="Function1" Width="300px" Filter="Contains">

    A page has the usercontrol with in updatepanel. the usercontrol is not visible on pageload. the control is made visible after a postback. the radcombox but the javascript is not being loaded. Function1 is undefined.

    Any help is appreciated.

  2. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 14 Jan 2015 in reply to navyateja Link to this post

    Have you tried moving the JavaScript out of the usercontrol and into the page?
Back to Top