摘要: 转自: http://www.souzz.net/html/edu/php/php10/6764.html \n", $id); $db = mssql_select_db("stock",$id) or die("无法连接stock数据库!"); $stockcode='600600'; $id = 0; $msg = 0; //printf("%d\n", $db); //$query = ... 阅读全文
posted @ 2008-01-31 11:49 N/A2011 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Residential Iframe min price:0 max price:2M+ bedroom:0 bathr... 阅读全文
posted @ 2008-01-30 07:57 N/A2011 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Untitled Page 阅读全文
posted @ 2008-01-30 07:48 N/A2011 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.linuxpk.com/34233.html 功能:JSP数据库操作例程 - 存储过程 - JDBC-ODBC - SQL Server SQL Server的存储过程如下: create procedure sp_jsptest @yourname varchar(50), @myname varchar(50) output as ... 阅读全文
posted @ 2008-01-29 12:58 N/A2011 阅读(417) 评论(0) 推荐(0) 编辑
摘要: from: http://www.aspdotnetcodes.com/Parent_Child_GridView_DetailsView.aspx Parent-Child Data Manipulations with GridView and DetailsView control ... 阅读全文
posted @ 2008-01-26 03:17 N/A2011 阅读(1345) 评论(0) 推荐(0) 编辑
摘要: from: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridviewrow.aspx Visual Basic (Declaration) _ _ Public Class GridViewRow _ Inherits TableRow _ Implements IDataItemContainer... 阅读全文
posted @ 2008-01-26 02:52 N/A2011 阅读(322) 评论(0) 推荐(0) 编辑
摘要: from: http://www.dotnetjohn.com/articles.aspx?articleid=236 http://www.dotnetjohn.com/articles.aspx?articleid=241 GridView, DetailsView, and SqlDataSource Interaction Part 1 The GridView, DetailsVi... 阅读全文
posted @ 2008-01-25 12:40 N/A2011 阅读(832) 评论(0) 推荐(0) 编辑
摘要: from: http://www.dotnetbips.com/articles/432e4904-754c-4425-ae93-c6142c2b943f.aspx Introduction ADO.NET DataReader is a read only and forward only cursor that allows you to iterate through the record... 阅读全文
posted @ 2008-01-25 04:21 N/A2011 阅读(269) 评论(0) 推荐(0) 编辑
摘要: from Scott Mitchell : http://aspnet.4guysfromrolla.com/articles/062905-1.aspx Retrieving Scalar Data from a Stored Procedure By Scott Mitchell Introduction Virtually all ASP.NET applications ... 阅读全文
posted @ 2008-01-25 04:13 N/A2011 阅读(411) 评论(0) 推荐(0) 编辑
摘要: from: http://idunno.org/archive/2004/14/01/122.aspx String.Format("{0}", "formatting string"}; One of the painful things about good old ASP was string formatting, VBScript simply didn't have anythin... 阅读全文
posted @ 2008-01-23 04:30 N/A2011 阅读(588) 评论(1) 推荐(0) 编辑
摘要: 转自: http://www.gridviewguy.com/ArticleDetails.aspx?articleID=147 Untitled Page " InsertCommand="INSERT INTO Users(FirstName, LastName) VALUES(@FirstName, @LastNam... 阅读全文
posted @ 2008-01-20 01:43 N/A2011 阅读(776) 评论(1) 推荐(0) 编辑
摘要: from: http://msconline.maconstate.edu/tutorials/ASPNET2/ASPNET09/aspnet09-05.aspx Record editing with a single DetailsView or FormView works fine for small database tables requiring few pages to navi... 阅读全文
posted @ 2008-01-20 01:10 N/A2011 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.cn-web.com/cnweb/5/374/article/ 当我们要显示的数所量比较大时,用GridView时就会将页面拉的很长,这样用户单击编辑或者删除时就很不方便,这种情况有两种解决方案: 1.是用GridView控件只显示适当的一小部分数据,然后在最后加一个链接,链向修改页面; 效果图: 方法: 我们在GridView控件中添加模板列,在模板列中添加H... 阅读全文
posted @ 2008-01-20 00:41 N/A2011 阅读(1216) 评论(2) 推荐(0) 编辑
摘要: 转自: http://www.vlly.net/myblog/article.asp?id=1310 DetailsView的DefaultMode用于初始状态为哪种 把某些列转为模板后可以自定义编辑 如: ((Label)DetailsView1.FindControl("Label3")).Text = Membership.GetUser().UserName; protected v... 阅读全文
posted @ 2008-01-20 00:39 N/A2011 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.cnblogs.com/wangzhq/archive/2006/09/14/504308.aspx 关于DetailsView使用DropDownList1 在DetailsView中创建一个模板列,在模板列中加入DropDownList 例: 0 1 2 3 ... 阅读全文
posted @ 2008-01-20 00:34 N/A2011 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1setGoogleMapCommunity('Country Hills, Calgary, alberta'); 2setGoogleMapLocations('Country Hills, Calgary, alberta'); 3setGoogleMapLocations('# 133 728 Country Hills RD NW'); above is data.html ... 阅读全文
posted @ 2008-01-16 04:23 N/A2011 阅读(601) 评论(0) 推荐(0) 编辑
摘要: originally from: http://forums.asp.net/t/1191194.aspx Understanding the Page Life Cycle can be very important as you begin to build Pages with MasterPages and UserControls. Does the Init event fire ... 阅读全文
posted @ 2008-01-14 23:56 N/A2011 阅读(365) 评论(2) 推荐(0) 编辑
摘要: from: http://www.thescripts.com/forum/thread78561.html You can do this, but in general you should avoid cursors unless there is no other choice. It may be that your cursor can be written as a single ... 阅读全文
posted @ 2008-01-12 02:26 N/A2011 阅读(236) 评论(0) 推荐(0) 编辑
摘要: originally from: http://dragon.cnblogs.com/archive/2006/05/08/394078.html http://dragon.cnblogs.com/archive/2006/05/09/394923.html http://www.radsoftware.com.au/articles/regexlearnsyntax.aspx http://w... 阅读全文
posted @ 2008-01-11 01:13 N/A2011 阅读(344) 评论(0) 推荐(0) 编辑
摘要: function VehicleTypeChange() { var textField; var choice; textField = document.getElementById("ctl00_ContentPlaceHolder1_dd_vehicleType"); choice = textField.value; if(choice == -1) { //Textbox ... 阅读全文
posted @ 2008-01-10 05:49 N/A2011 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 转自: http://msdn2.microsoft.com/en-us/library/aa175920.aspx Error Handling in T-SQL: From Casual to Religious Dejan Sunderic Most of us would agree that experienced programmers tend to be more adept a... 阅读全文
posted @ 2008-01-09 13:05 N/A2011 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.cnblogs.com/jackyrong/archive/2006/03/02/341621.html sql server 2005中新增加的try catch,可以很容易捕捉异常了,今天大概学习看了下,归纳下要点如下 基本用法 BEGIN TRY { sql_statement | statement_block } END TRY BEGIN CATC... 阅读全文
posted @ 2008-01-09 12:39 N/A2011 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1function paging(TotalNumber,CurrentPage,ShowNumberInOnePage) 2{ 3 var TotalPage=Math.ceil(TotalNumber/ShowNumberInOnePage); 4 var temp="Total Page:"+TotalPage+" first "; 5 if(Curr... 阅读全文
posted @ 2008-01-09 01:11 N/A2011 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.aspxhome.com/asp-net/aspnetskills/20078/146824.htm 用ASP.NET与SQL SERVER可是缘份最好了,稍大的程序一般第一先考虑的是SQL SERVER,只是一些很考虑经济的才使用ACCESS等了。用SQL SERVER,为了使数据库的效率更好,一般都会才取存储过程,因存储过程执行速度快,并且可以实现一些高级的查... 阅读全文
posted @ 2008-01-08 13:09 N/A2011 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 转自: http://www.sommarskog.se/error-handling-I.html Error Handling in SQL Server – a Background An SQL text by Erland Sommarskog, SQL Server MVP. This is one of two articles about error handling in ... 阅读全文
posted @ 2008-01-08 12:03 N/A2011 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: set ANSI_NULLS ON set QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[aspnet_Membership_CreateUser] @ApplicationName nvarchar(256), @UserName ... 阅读全文
posted @ 2008-01-08 11:09 N/A2011 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Data; 5using System.Data.SqlClient; 6 7namespace JoeyCodeGenerator 8{ 9 public class CSharp :... 阅读全文
posted @ 2008-01-08 11:02 N/A2011 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 转自:http://topic.csdn.net/t/20050124/12/3749111.html select 主键=a.name FROM syscolumns a join sysobjects b on a.id=b.id and b.xtype='U' and b.name'dtproperti... 阅读全文
posted @ 2008-01-05 13:58 N/A2011 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/zhouxujian/archive/2006/11/10/556776.html 获取数据库中的所有表 Author:hobe From:Internet。 在很多情况下我们需要将指定的数据库中的所有表都列出来。在使用c#进行软件开发时,我们有哪些方法可是实现这个目的呢?本人对此进行概要的总结,有以下6中方式可以实现这个目的。 1、sqld... 阅读全文
posted @ 2008-01-04 04:21 N/A2011 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 出处:http://www.brainbell.com/tutors/C_Sharp/Attributes.htm Attributes Most programming languages are designed with a given set of abilities in mind. For example, when you set out to design a compiler,... 阅读全文
posted @ 2007-12-21 04:55 N/A2011 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1packageio;23importjava.io.*;45/***//**6*@author7*@version1.08*/9publicclassReadLineFromFile10{11/***//**12*Attributes13*/14privateBufferedReaderbr;15privateStringfilePath;1617/***//**18*Constructor19*/20publicReadLineFromFile()21{22}2324/***//**25*Constructor26*/27publicReadLineFromFile(StringfileP 阅读全文
posted @ 2007-12-03 06:43 N/A2011 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 1packagebTree;23importjava.io.Serializable;4importjava.util.Iterator;56/***//**7*Interfaceforabtree8*9*@author10*@version1.011*/12publicinterfaceIBTreeextendsSerializable13{14/***//**15*Methodthatwilladdannodeintothebtree16*17*@paramonodetoadd18*/19@SuppressWarnings("unchecked")20publicvoi 阅读全文
posted @ 2007-12-03 06:41 N/A2011 阅读(3091) 评论(0) 推荐(0) 编辑
摘要: 1/***//**2*ADTbinarysearchtree3*/4packagebinarySearchTree;56importjava.io.Serializable;7importjava.util.Iterator;89/***//**10*@author11*@version1.012*/13publicinterfaceIBinarySearchTreeextendsSerializable14{15/***//**16*Getthesizeofbinarysearchtree17*18*@returnanintofbinarysearchtree'ssize19*/20 阅读全文
posted @ 2007-12-03 06:39 N/A2011 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 1packagestack;23/***//**4*Thisisstackinterface5*6*@author7*@version1.08*/9publicinterfaceIStack10{11/***//**12*Methodthatwillreturnthelastelementinthestack,ifthereisno13*elementleft,itwillreturnnull14*15*@returnobject,thelastelementinthestack16*/17publicObjectpeek();1819/***//**20*Methodthatwillretu 阅读全文
posted @ 2007-12-03 06:38 N/A2011 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1packagequeue;23/***//**4*Thisisqueueinterface5*6*@author7*@version1.08*/9publicinterfaceIQueue10{11/***//**12*Methodthatwillpushtheelementspecifiedbytheparameterintothe13*queue14*15*@paramobject,theelementthatwillbepushintothequeue16*/17publicvoidenQueue(Objectobject);1819/***//**20*Methodthatwillr 阅读全文
posted @ 2007-12-03 06:37 N/A2011 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1packagelist;23importjava.io.*;4importjava.util.*;56/***//**7*<p>8*The<code>List</code>interfaceisdesignedtobeusedasabasisforall9*theLinearADT'sthatwillbedevelopedintheCMPP307classatSAIT.The10*implementorsofthisinterfacewillberequiredtoaddallthefunctionality,11*therewillbeno< 阅读全文
posted @ 2007-12-03 06:35 N/A2011 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1Public Class Form1Class Form1 2 Dim gfxobj As System.Drawing.Graphics 3 Dim count As Integer 4 Private Sub Form1_Load()Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.Eve... 阅读全文
posted @ 2007-11-23 06:48 N/A2011 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1Public Class Form1Class Form1 2 3 4 Dim strParams(5) As String 5 6 Const dblMinpH As Double = 2 7 Const dblMaxpH As Double = 12 8 Const dblMinFlow As Double = 0 9 C... 阅读全文
posted @ 2007-11-16 04:26 N/A2011 阅读(276) 评论(0) 推荐(0) 编辑
摘要: http://edison.mohawkcollege.ca/access/course/co314/Labs/Lab5/Lab5.html Public Class Form1Class Form1 ' Declare the arrays that will be used in the program Dim strParams(2) As String Dim s... 阅读全文
posted @ 2007-10-19 15:23 N/A2011 阅读(443) 评论(0) 推荐(0) 编辑
摘要: Bubble1packagesort;23/***//**4*Bubblesortclass5*6*@author7*@version1.08*/9publicclassBubbleSort10{11@SuppressWarnings("unchecked")12publicstaticvoidsort(Comparable[]array)13{14sort(array,0,array.length-1);15}1617@SuppressWarnings("unchecked")18privatestaticvoidsort(Comparable[]ar 阅读全文
posted @ 2007-10-10 10:35 N/A2011 阅读(292) 评论(0) 推荐(0) 编辑