asp.net吧
关注: 45,793 贴子: 174,840

  • 目录:
  • 程序设计及人工智能
  • 73
    无论你是已经工作的,还是正在学习的 都可以再这里随意写下自己的心得 你可以问问题,可以在这交朋友,可以分享资源,分享心得 在这里,可以记录同行们心情的每一天
  • 28
    using System.Data; using System.Data.SqlClient; public DataTable RetrieveRowsWithDataTable() { using ( SqlConnection conn = new SqlConnection(connectionString) ) { conn.Open(); SqlCommand cmd = new SqlCommand("DATRetrieveProducts", conn); cmd.CommandType = CommandType.StoredProcedure; SqlDataAdapter adapter = new SqlDataAdapter( cmd ); DataTable dataTable = new DataTable("Products"); adapter .Fill(dataTable); return dataTable; } } 使用 SqlAdapter 生成 DataSet 或 DataTable 1.创建一个 SqlCommand 对象以调用该存储过程,并将其与一个 SqlConnection 对象(显示
  • 64
    1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Second; 1.8 取当前毫秒 int 毫秒=currentTime.Millisecond; (变量可用中文) 2、Int32.Parse(变量) Int32.Parse("常量") 字符型转换 转为32位数
    gmylover 12-29
  • 42
    一、系统功能设计和数据库设计   1、系统功能设计和数据库设计   1.1 系统功能设计   网络在线投票系统实现的功能比较简单,具体如下:   ◎投票项目的管理;   ◎添加投票的项目;   ◎删除投票的项目;   ◎对项目进行投票;   ◎查看项目的投票情况。   1.2 数据库设计   本系统的数据库设计比较简单,只需要存储投票的信息即可。在SQL Server 2000中创建一个数据库,名称为“WebVoteDB”,并在该
  • 33
    using System.Data; // Use ADO.NET namespace using System.Data.SqlClient; SqlConnection thisConnection = new SqlConnection( @"Data Source=GY; Initial Catalog=northwind;uid=sa;password=datadog"); //先建立连接 thisConnection.Open();//打开连接 SqlCommand thisCommand = thisConnection.CreateCommand();//直接指定conn的command 也可以这样 // SqlCommand cmd = new SqlCommand(); // cmd.Connection = thisConnection; cmmand的sql命令 thisCommand.CommandText = "SELECT CustomerID, CompanyName from Customer"; SqlDataReader thisReader = thisCommand.ExecuteReader();//sqldat
  • 18
    ★Asp.net如何连接SQL Server2000数据库★ 大家好,以下是有关ASP.net连接SQL Server2000数据库的例程, 在这里和大家分享一下: Asp.net连接SQL Server2000数据库例程详解: sub page_load(sender as Object,e as EventArgs) Dim myConnection As SqlConnection Dim myCommand As SqlCommand Dim ds as DataSet '1.connect to sql server myConnection = New SqlConnection( "server=localhost;database=Pubs;uid=ueytjdf;pwd=doekdf" ) myConnection.Open() la1.text="Connection Opened!" '2.Create a table myCommand = New SqlCommand( "CREATE TABLE
    canleikm 11-18
  • 14
    ASP.net对于编写WEB应用程序以及组件来说是一个很好的框架,但是由于他的庞大性对于很多人来说要了解他的每一个细节好象是否不太可能,我一直认为有必要了解一下基层结构的工作原理以便在设计时获取更高的性能,在接下来的一系列文章中,我将要描叙一下WEB的生命周期,从当请求被服务器接受开始,传送到ASP.net管道处理一直到生成回送信息(如:HTML)在管道处理后期。   介绍   Microsoft Active Server Pages(微软动态网页服务),同样也被大家
    zhu2415 8-21
  • 16
    DataGrid提供了分页功能,不过看上去功能有限,但是我们可以通过DataGrid的一些属性来获取状态以及增加首页、尾页功能按钮。这里没有使用DataGrid的自定义分页功能,如果在速度效率不是很讲究的情况下,由DataGrid自己管理分页还是不错的,付出的代价就是要把整个相关数据取出来后再删选指定页的数据。好处就是开发速度快,不需要写分页的存储过程。本文事例使用的是Sql Server中的Northwind数据库。运行界面如下: 对于前台的显示界面,我放了一
    btcbsc 1-27

  • 发贴红色标题
  • 显示红名
  • 签到六倍经验

赠送补签卡1张,获得[经验书购买权]

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!

本吧信息 查看详情>>

会员: 会员

目录: 程序设计及人工智能

友情贴吧