简体   繁体   中英

How to pass data or object by window.open

I need pass data or object (Criteria) from AngularJS to Crystal Report Viewer in asp.net Web

AngularJS Code:

$scope.OnPrint = function() {
 $window.open('http://localhost:89/', '_blank');
};

Thank.

You can use query string:

$scope.OnPrint = function() {
 $window.open('http://localhost:89/?param1=value&param2=value', '_blank');
};

Use the query string:

$scope.OnPrint = function() {
 var param1 = '192';
 var param2 = 'userReport';
 $window.open('http://localhost:89/?param1=' + param1 + '&param2=' + param2, '_blank');
};

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM