COMPUTER_LZY

要输就输给追求,要嫁就嫁给幸福

导航

上一页 1 2 3 4 5 6 7 ··· 11 下一页

2012年6月13日 #

Silverlight发布到IIS上需要特别注意的地方

摘要: ASP.NET网站发布到IIS上的操作非常容易,基本上有三种途径:1、源码发布:直接将源程序copy到IIS根目录(或设定好的虚拟目录)下2、在Visual Studio中右键网站根目录生成发布包,会得到编译后的网站文件,copy到IIS目录下3、直接在Visual Studio中右键发布,会弹出一个对话框,在对话框中可以选择发布到本地IIS上,只要选定已建立的虚拟目录就可以了。Silverlight的发布大致和ASP.net相似,也有源码发布和生成编译包后发布,当然也可以右键项目直接发布(直接发布的形式我至今没有搞明白怎么弄,老是报错),但有些地方需要特别注意:1、 在IIS的'HT 阅读全文

posted @ 2012-06-13 15:04 CANYOUNG 阅读(1878) 评论(0) 推荐(1) 编辑

2012年6月11日 #

Silverlight 读取Web.config

摘要: web.config <appSettings><addkey="ApplicationName"value="ABetterSilverlightConfigurationDemonstration"/> </appSettings> 在*.xaml.cs:Appapplication=(App)Application.Current;stringApplicationName=application.DeploymentConfigurations["ApplicationName"]; 阅读全文

posted @ 2012-06-11 20:11 CANYOUNG 阅读(166) 评论(0) 推荐(0) 编辑

2012年5月29日 #

Retrieving the COM class factory for component with CLSID {00024500-0000-000 (未成功)

摘要: 这两天用ASP.NET写一个导入EXCEL数据到ORACLE的程序,调试通过,但是部署到服务器上就不能用了。Retrieving the COM class factory for component with CLSID {00024500-0000-000后来终于解决:在服务器上,1,运行dcomcnfg打开组件服务2,依次展开"组件服务"->"计算机"->"我的电脑"->"DCOM配置"3,找到"Microsoft Excel应用程序"右键打开属性对话框点击"安 阅读全文

posted @ 2012-05-29 08:43 CANYOUNG 阅读(29880) 评论(0) 推荐(2) 编辑

2012年5月25日 #

silverlight Web.config connectionstring

摘要: 新建silverlight business application 此时打开web.config文件,模板已经自动生成如下设置:<connectionStrings> <add name="ApplicationServices" connectionString="data source=./SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|/aspnetdb.mdf;User Instance=true" providerName="S 阅读全文

posted @ 2012-05-25 13:56 CANYOUNG 阅读(320) 评论(0) 推荐(0) 编辑

2012年5月16日 #

Export Silverlight DataGrid to Excel XML/CSV

摘要: usingSystem;usingSystem.Windows;usingSystem.Windows.Data;usingSystem.Windows.Media;usingSystem.Windows.Controls;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Collections.ObjectModel;usingSystem.Linq;usingSystem.Text;usingSystem.IO;usingSystem.Reflection;usingSystem.Xml.Linq;pub 阅读全文

posted @ 2012-05-16 16:24 CANYOUNG 阅读(690) 评论(0) 推荐(0) 编辑

Microsoft.Silverlight.CSharp.targets

摘要: 报错:Unable to read the project file 'XNTVOD.AdminClient.csproj'. C:\Path\To\MyProject.csproj(593,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> decla 阅读全文

posted @ 2012-05-16 13:48 CANYOUNG 阅读(2180) 评论(0) 推荐(0) 编辑

2012年5月14日 #

SilverLight网站的发布

摘要: 修改IIS:配置 MIME类型 .bin sl/octet-stream .xaml application/xaml+xml .xap xapapplication/x-silverlight将整个项目Web下的所有文件Copy到IIS的虚拟目录下面就可以了。问题:为什么直接在VS2010中直接右键publish老是出错呢?不解报错内容:Error 1 Web deployment task failed.(The metabase path '/lm/w3svc/<siteid>/ROOT/..' is not supported. Paths must be 阅读全文

posted @ 2012-05-14 16:36 CANYOUNG 阅读(458) 评论(0) 推荐(1) 编辑

2012年4月27日 #

ASP.NET 读取本地Excel

摘要: 在网页中选择本地Excel文件并获取文件内容,需要将该文件首先上传到服务器上,然后再根据该文件在服务器上的地址获取该文件的内容,代码如下 :///<summary>///上传文件的根目录///</summary>privatestringbootPath=HttpContext.Current.Request.PhysicalApplicationPath+"Files\\";protectedvoidbtnSubmit_Click(objectsender,EventArgse){if(file_note.HasFile){//判断文件是否小于10 阅读全文

posted @ 2012-04-27 14:22 CANYOUNG 阅读(2374) 评论(0) 推荐(1) 编辑

2012年4月26日 #

GridView Repeater导出PDF-Word-Excel

摘要: #regionExporttoWord,ExcelandPDFprotectedvoidbtnword_Click(objectsender,EventArgse){Response.AddHeader("content-disposition","attachment;filename=FileName.doc");Response.Cache.SetCacheability(HttpCacheability.NoCache);Response.ContentType="application/vnd.word";System.IO 阅读全文

posted @ 2012-04-26 10:24 CANYOUNG 阅读(455) 评论(0) 推荐(1) 编辑

2012年4月10日 #

GridView中实现CheckBox的全选

摘要: 用服务器端的方法:在页面上放一个gridview控件,配置好数据源,编辑列,添加一个模版列,再编辑模版,放入一个checkbox控件。代码如下:<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="AreaID" DataSourceID="SqlDataSource1"> <Columns> &l 阅读全文

posted @ 2012-04-10 10:08 CANYOUNG 阅读(219) 评论(0) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 ··· 11 下一页