随笔分类 -  .net

摘要:1:前台代码:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Repeater.aspx.cs" Inherits="Repeater" %><!DOCTYPE html><html><head runat="server"> <title></title></head><body> <form id="form1&quo 阅读全文
posted @ 2013-05-22 18:17 曹县三胖暴打大猩猩 阅读(209) 评论(0) 推荐(0)
摘要:1:注意要得把两个listbox的selectectionmode属性设置为mutiple2 后台代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class TestListBox : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) {... 阅读全文
posted @ 2013-05-22 15:17 曹县三胖暴打大猩猩 阅读(384) 评论(0) 推荐(0)
摘要:1 前台代码:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPager.aspx.cs" Inherits="TestPager" %><%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %> <!DOCTYPE html><ht 阅读全文
posted @ 2013-05-21 21:37 曹县三胖暴打大猩猩 阅读(253) 评论(0) 推荐(0)
摘要:1:我们打开vs开发工具新建项目添加asp.net web 服务应用程序2 添加web应用程序服务好后可以先测试service.asmx文档3 我在后service.asmx后台添加四个功能函数(求和、差、乘、除)using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using System.Xml.Linq;using System.Web.Services.Protocols;[WebService(Namespace = &quo 阅读全文
posted @ 2013-04-21 16:14 曹县三胖暴打大猩猩 阅读(416) 评论(0) 推荐(0)
摘要:1:我们首先打开vs2012创建空白解决方案如图1所示: 图12:我们再去右边的解决方案管理下面查看我们已经创建的空白方案并在添加四个文件夹(文件夹名依次为"表示层","模型层","数据访问层","业务逻辑层"注:它们谁在前后无所谓看个而言)如图2所示: 图23:我们为模型层文件夹添加对应的类库并添加对应的类名为“Users(这必须和数据库中的表名一样,因为要实现实体映射关系)”图3所示4我们为数据访问层文件夹添加类库以及在类库下面添加俩个名分别为“userservice”,“sqldbhelper”类这里类名可以 阅读全文
posted @ 2013-04-15 19:48 曹县三胖暴打大猩猩 阅读(779) 评论(0) 推荐(0)
摘要:1:首先在web配置文件对连接字符串进行配置<connectionStrings> <add name="conStr" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)));User ID=admin1;Password=admin1"/> </connectionStrings>2:添加在项目里添加引用orac 阅读全文
posted @ 2013-04-11 22:35 曹县三胖暴打大猩猩 阅读(279) 评论(0) 推荐(0)
摘要:第一:在vs2012下命名空间为OperateClass中生成dll文件。以下是其Caculate类要实现的具体功能代码using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace OperateClass{ public class Caculate { /// <summary> /// 求两个数的和 /// </summary> public int Add(int a ,int b) ... 阅读全文
posted @ 2012-12-15 22:10 曹县三胖暴打大猩猩 阅读(575) 评论(0) 推荐(0)