Aspx Javascript function not called from other javascript function

185 views Asked by At

I worked in .net application, in this application from one aspx page to call one html page through iframe and called webservice through JS function. in this html file have button and on this click event I want to call popup window in aspx javascript through another js function. here is code

on html page

 <div id="dropArea">
    <button type="button" runat="server" onclick="Test()"> clickme </button>

</div>

JS file function

    function Test() {
    Config('123', '567');   
}

this config function exists in aspx page

aspx page code

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Black" Modal="True" ReloadOnShow="True" ShowContentDuringLoad="False" VisibleStatusbar="False" EnableShadow="True" Overlay="True" EnableViewState="False">
     <Windows>
             <telerik:RadWindow ID="ConfigRadWindow" runat="server" Width="750" Height="500" VisibleOnPageLoad="false" Behaviors="Move,Resize,Close" IconUrl="images/icoPhraseTranslationManager.png" Title="Configure" />
    </Windows>
  </telerik:RadWindowManager>
<script type="text/javascript">
 function Config(testID, UnitID) {
    var oWnd = radopen("Config.aspx?ID=" + testID + "&UnitID=" + UnitID, "ConfigRadWindow");
  }
</script>

I am able to call aspx page with use window.open function but requirement is that to call this Config()function through js function.

P.S. :- I put reference of JS file in aspx page and master page and give me error in console is 'config.js:7 Uncaught ReferenceError: Config is not defined at config (VM84 config.js:7)'

Appreciate your help and Thanks in advance

0

There are 0 answers