asp.net项目引用silverlight插件
2020-12-13 03:11
标签:style code c java ext http 其实很简单,silverlight4中,只需要新建一个silverlight项目,找到启动的aspx或html页面,复制引用代码到asp.net项目的aspx即可,同时在项目中引用silverlight项目下的silverlight.js.说实话.其实在这个方面现在来说两者是一样的,目前发现区别在于启动方式?silverlight需要加载一个xaml启动,asp.net则不需要,可以做到加载多个xaml的效果,从跟html兼容这方面来说,效果要比用silverlight项目好. 引用代码: script部分: var errorType = args.ErrorType; if (errorType == "ImageError" || var errMsg = "Unhandled Error in Silverlight
Application " errMsg += "Code: " + iErrorCode + " \n"; if (errorType == "ParserError") { throw new Error(errMsg); 布局部分: 小白一枚,欢迎讨论 asp.net项目引用silverlight插件,搜素材,soscw.com asp.net项目引用silverlight插件 标签:style code c java ext http 原文地址:http://www.cnblogs.com/yastar/p/3724873.html
var
iErrorCode = args.ErrorCode;
errorType == "MediaError") {
return;
}
+ appSource + "\n";
errMsg += "Category: " + errorType + " \n";
errMsg += "Message: " + args.ErrorMessage + " \n";
errMsg += "File: " + args.xamlFile + " \n";
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition + " \n";
}
else if (errorType == "RuntimeError") {
if (args.lineNumber != 0) {
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition +
" \n";
}
errMsg
+= "MethodName: " + args.methodName + " \n";
}
}