上一页 1 ··· 4 5 6 7 8
1.建立iis虚拟目录,包含启动服务所需的所有文件(创建服务,安装iis,建立虚拟目录等工作不作介绍)2.确实机器已经安装了.netframework 2.0,若.netframework 2.0的安装先于iis的安装,则需要一个Service的iis注册cmd命令为:c:\windows\microsoft.net\framework\v3.0\windows communication Fou... Read More
posted @ 2010-07-28 17:12 LARSON _ Views(3236) Comments(2) Diggs(0) Edit
方法1:向嵌入aspx页面的silverlight对象添加imnitParams参数,它的value是与querystring类似的键值对,多个参数用逗号隔开,aspx后台代码如下所示:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><object data="data:application/x-silverlight-2," type="application/x-silverlight-2" Read More
posted @ 2010-07-27 10:49 LARSON _ Views(1819) Comments(0) Diggs(1) Edit
有时你希望为Silverlight的ComboBox控件绑定一个含有多个属性的对象,同时将多个属性绑定于ComboBox;但是Silverlight中ComboBox绑定时是没有Value属性的,所以也不能使用类似ComboBox.SelectedValue语句来获得选中的value值;但ComboBox有一个属性是可以返回选中的整个对象的,那就是ComboBox.SelectedItem;举例说... Read More
posted @ 2010-07-20 15:30 LARSON _ Views(1072) Comments(2) Diggs(1) Edit
本文来自CSDN博客:http://blog.csdn.net/liling144/archive/2008/12/17/3538798.aspx Read More
posted @ 2010-07-09 08:50 LARSON _ Views(254) Comments(0) Diggs(0) Edit
C#删除文件string delFile = Server.MapPath(".")+"\\myTextCopy.txt";File.Delete(delFile);C#移动文件string OrignFile,NewFile;OrignFile = Server.MapPath(".")+"\\myText.txt";NewFile = Server.MapPath(".")+"\\myText... Read More
posted @ 2010-07-02 09:21 LARSON _ Views(384) Comments(0) Diggs(0) Edit
首先看一眼界面界面需求:1."Create Section"按钮,取得文本框的输入文本存入库中;2.点击GridView的"编辑",将记录的信息填入文本框中;3.业务编码对应不能为空的表字段SectionCode,ID为"tbSectionID";4.添加一个ReQuiredFieldValidator,ControlToValidate="tbSectionID";现在开始纠结的问题首先,ReQ... Read More
posted @ 2010-05-28 12:53 LARSON _ Views(937) Comments(1) Diggs(0) Edit
1..web工程下添加Silverlight JScript Page,名为"MySplashScreen"2.[代码]3.MySplashScreen.js中添加代码[代码]完成,在silverligh中添加一个大的文件,属性设为content来延长下载时间来测试启动画面注:第一步也可以不在web工程下添加Silverlight JScript Page,而只是添加一个xmal文件作为启动画面的前台显示,其余与以上方法相同。 Read More
posted @ 2010-05-13 15:11 LARSON _ Views(245) Comments(0) Diggs(0) Edit
由于项目要求,需要根据数据库的字段值动态显示或者隐藏按钮,在网上找了一些资料,都是在RowDataBound事件里判断,其实只要是ItemTemplate列下的控件可以在后台代码中实现该功能首先,库中字段为coursestate,是一个bit类型[代码]可以设置Visible属性来动态实现(可以根据字段不同类型来改变<%#%>中改变代码判断)RowCommand中获取触发事件的行号[代... Read More
posted @ 2010-05-12 21:56 LARSON _ Views(1112) Comments(0) Diggs(0) Edit
说明:复制表(只复制结构,源表名:a新表名:b)select*intobfromawhere1<>1说明:拷贝表(拷贝数据,源表名:a目标表名:b)insertintob(a,b,c)selectd,e,ffromb;说明:显示文章、提交人和最后回复时间selecta.title,a.username,b.adddatefromtablea,(selectmax(adddate)add... Read More
posted @ 2010-05-07 14:34 LARSON _ Views(261) Comments(0) Diggs(1) Edit
上一页 1 ··· 4 5 6 7 8