使用Silverlight为DotNetNuke创建模块.doc

  1. 1、本文档共18页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
使用Silverlight为DotNetNuke创建模块

Why DotNetNuke and Silverlight? Silverlight?is an application that runs in the web browser. It has its own operating system and one would be tempted to create solutions completely using Silverlight. For example, lets assume you wanted to create a?Photo Gallery. Soon you would realize that you need a method to allow an administer to upload pictures to the gallery. Also, you need to implement security to only allow the administrator to upload pictures. You would also want to give the administrator the ability to create multiple picture albums. Implementing this functionality will usually consume more time and resources than the Silverlight Photo Gallery itself.? The logical solution is to leverage the free open source?DotNetNuke Portal Framework?and create a DotNetNuke Silverlight module, because DotNetNuke has an extensive user and roles management system. This will allow you to concentrate on the primary functionally of your Silverlight application. Challenges with DotNetNuke Silverlight modules Silverlight 1.0 applications are primarily comprised of XAML files and JavaScript. DotNetNuke allows for a single module to be placed on a page multiple times. This can cause undesired behavior as Silverlight requires a uniquely named DIV for each Silverlight control on the page that must be initialized by JavaScript. The JavaScript would not know the name of this DIV tag because it is created at run time. The solution to this is to dynamically create the code that injects the Silverlight module on the page. Creating a Silverlight module To best explain how to create a DotNetNuke Silverlight module, it is helpful to first create a normal Silverlight application. To start, we will open?Microsoft Expression Blend 2?(or higher). From the File menu, select?New Project... . From the Create New Project menu, select?Silverlight Application (JavaScript), enter a name and click?OK. From the toolbox select the?TextBlock?control. Hold down the mouse button as you draw a rectangle. Ente

文档评论(0)

153****9595 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档