Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在调用函数后防止asp.net中重新加载母版页_Javascript_Jquery_Html_Asp.net_Angularjs - Fatal编程技术网

Javascript 在调用函数后防止asp.net中重新加载母版页

Javascript 在调用函数后防止asp.net中重新加载母版页,javascript,jquery,html,asp.net,angularjs,Javascript,Jquery,Html,Asp.net,Angularjs,我有一个名为StockGraph.aspx的页面,其中包含HTML <div ng-controller="StockGraphController"> <div class="container"> <div class="row text-center"> <div class="col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2

我有一个名为StockGraph.aspx的页面,其中包含HTML

<div ng-controller="StockGraphController">
        <div class="container">
            <div class="row text-center">
                <div class="col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 col-sm-8 col-sm-offset-2 sub-head">
                    <h2 data-wow-delay="0.3s" class="wow rollIn animated"><strong>STOCK QUOTE </strong></h2>
                    <p data-wow-delay="0.3s" class="sub-head">Type In any Company name in the below Text Box to obtain the current stock value of the corresponding Company </p>
                    <label data-wow-delay="1.3s" class="wow rollIn animated">Try typing "Apple" </label>
                    <input type="text" id="symbolsearch" class="form-control" placeholder="Enter company name or symbol" ng-model="equitystock.symbol">
                    <button ng-click="showquote(equitystock)" class="btn btn-success">Show Quote</button>
                </div>
                <div class="col-lg-12  sub-head">
                    <div id="chartDemoContainer" style="height: 500px; min-width: 500px; margin-bottom: 30px;"></div>
                </div>
            </div>
        </div>
    </div>
我已经在主文件中放置了角度函数。上面的angular函数调用Stock api并在div id=“chartDemoContainer”中显示图表。此函数在简单的独立aspx文件中运行良好。但是,当我使用Master->Child aspx页面设计来设计相同的场景时,检索数据后的角度函数会刷新页面,同时刷新母版页,因此我要加载的图形会丢失!!!!因为母版页刷新。有没有一种方法可以阻止母版页被刷新或angular指令中的任何方法


请就这个问题提供帮助???

您的
ng控制器在哪里
?我已将ng控制器放置在上述部门股票报价中
    function StockGraphController($scope) {

            $scope.showquote = function () {
                var dur = 365;
                var stockSymbol = $scope.equitystock.symbol;
                new Markit.InteractiveChartApi(stockSymbol, dur)
            }
 }