将Silverlight控件添加到asp.net页时出现问题 [英] problems in adding silverlight controls to asp.net page

查看:73
本文介绍了将Silverlight控件添加到asp.net页时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是瑜伽士.我的问题是我需要在新的(asp.net,c#)应用程序中添加silverlight控件(progressbar).当iam打开silverlight应用程序并从选择项向其工具箱中添加progressbar控件时,一切正常...
但是,当我使用asp.net应用程序工具箱添加相同的控件时,从选择项中添加控件后它不显示该控件..所以出了什么问题,建议我..我使用的是vs201,.net framework 4.0 ,asp.net 4.0 ....
该控件显示在带有Silverlight应用程序的工具箱中.但没有使用asp.net应用程序...请帮助我...是否需要安装某些东西...
谢谢....

hi i am yogesh. my problem is that i need to add silverlight control (progressbar)in my new (asp.net,c#) application.When iam opening silverlight application and adding progressbar control to its toolbox from choose items, everything is ok...
But when i am adding same control using asp.net application toolbox, it doesn''t show the control after adding it from choose items.... so what is wrong please suggest me.. i am using vs201, .net framework 4.0, asp.net 4.0....
The control is shown in the toolbox with silverlight app. but not with asp.net application... please help me... is there something i have to install or not...
thanks....

推荐答案

检查这些博客
http://msdn.microsoft.com/en-us/library/cc838145%28v = vs.95%29.aspx [ ^ ]
http://forums.silverlight.net/t/9672.aspx/1 [ ^ ]
--NDK
check these blogs
http://msdn.microsoft.com/en-us/library/cc838145%28v=vs.95%29.aspx[^]
http://forums.silverlight.net/t/9672.aspx/1[^]
--NDK


您不能在ASP.NET页面中直接使用Silverlight控件.您必须插入Silverlight运行时对象,并将其指向已编译的SilverLight项目的.xap文件.

Silverlight与Flash十分相似,因为您确实使用对象标签在页面中包含了一个组件.

我猜想您希望在ASP.Net页上进行某些处理时显示进度条.您可能需要考虑使用AJAX进度栏. Silverlight实际上是要作为托管在网页中的独立应用程序进行部署.跨越Silverlight/DOM边界传递内容是很丑陋的,并且需要大量的Java hack才能将事件整理起来.您可能会发现AJAX更易于在ASP.Net解决方案中使用.
You cannot directly use Silverlight controls in ASP.NET pages. You have to insert the Silverlight runtime object and point it at the .xap file which is your compiled SilverLight project.

Silverlight is much like Flash in that you are really including a component in the page using an object tag.

I''m guessing you want a progress bar displayed while some process is going on in your ASP.Net page. You might want to consider an AJAX progress bar instead. Silverlight is really meant to be deployed as an independent application hosted in a web page. Passing stuff across the Silverlight/DOM boundary is ugly and takes a lot of Javascript hacks to get the events wired up. You will probably find AJAX easier to use in an ASP.Net solution.


这篇关于将Silverlight控件添加到asp.net页时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆