摘要:
1、打开SQL,建立数据库test,添加一个新表student,并编辑相应的信息2、打开VS,添加两个窗体form1中添加一个GridView控件,在form2页面添加FormView控件3、设置GridView的AutoGenerateColumns属性为False,编辑列增加三列分别为:学生ID、学生姓名、学生班级,都转换为TempField,添加HyperLinkField 一列,设置DataNavigateUrlFields="ID" DataNavigateUrlFormatString="2.aspx?i={0}"。4、编辑模版,对应的lab 阅读全文
posted @ 2012-11-19 20:10
zwy_net
阅读(1095)
评论(0)
推荐(0)
摘要:
1、打开Microsoft Visual Studio 2010 Express for Windows Phone 新建2个page页面,并且布局两个页面如下图所示:MainPage.xaml页面:2.xaml页面:2、添加一个DataTransferClass类:DataTransferClass.cs类 public class DataTransferClass { public string name { get; set; } public string password { get; set; } public string sex... 阅读全文
posted @ 2012-11-19 19:14
zwy_net
阅读(633)
评论(6)
推荐(0)
摘要:
1、打开VS,添加TextFile1.txt、WebForm1.aspx、WebService1.asmx;2、在TextFile1.txt添加如下图所示数据:3、在WebService1.asmx中添加GetCompleteList方法,代码如下:GetCompleteList方法 [WebMethod] public String[] GetCompleteList(string prefixText, int count) { if (autoCompleteWordList == null) { ... 阅读全文
posted @ 2012-11-19 17:47
zwy_net
阅读(414)
评论(0)
推荐(0)
摘要:
1、先打开Access数据库,建立如图所示的表:2、打开VS新建WebForm1.aspx窗体和WebService1.asmx窗体。3、在WebService1.asmx后台代码中添加以下方法:(和SQL连接一样先把[System.Web.Script.Services.ScriptService]的注释撤销)在WebService1.asmx添加一个getText方法 [WebMethod] public string[] getText(string prefixText, int count) { string[] auto = nul... 阅读全文
posted @ 2012-11-19 17:10
zwy_net
阅读(1087)
评论(1)
推荐(0)
摘要:
1、打开SQL2008 新建数据库ajax;2、新建表Adress,并编辑相应的数据。创建后如下图所示:3、打开vs创建新项目,并添加相应的web窗体(WebForm1.aspx)和web服务器窗体(WebService1.asmx);4、在WebService1.asmx添加下面的方法:在此之前把 [System.Web.Script.Services.ScriptService]撤销注释。在WebService1.asmx添加一个方法 [WebMethod] [System.Web.Script.Services.ScriptMethod] public st... 阅读全文
posted @ 2012-11-19 16:50
zwy_net
阅读(262)
评论(0)
推荐(0)

浙公网安备 33010602011771号