Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NetÖÐʹÓÃVB.Netµ÷Óô洢¹ý³Ì²¢µÃµ½·µ»ØÖµ


ASP.NetÖÐʹÓÃVB.Netµ÷Óô洢¹ý³Ì²¢µÃµ½·µ»ØÖµ
À´Ô´£ºqqreadÂÛ̳ ×÷Õߣº ³ö´¦£ºÇÉÇɶÁÊé 2006-08-03 ½øÈëÌÖÂÛ×é
//´æ´¢¹ý³Ì´úÂë
¡¡CREATE PROCEDURE [AddNewInvoiceInfo] (@sUserID int,@sClaimMethod varchar(50),@sInvoiceNum ¡¡varchar(50),@sInvoiceDate datetime,@sBuyCity varchar(50))AS
¡¡Insert Into SMB_InvoiceInfo (MemberID,ClaimMethod,InvoiceNum,InvoiceDate,InvoiceCity) Values ¡¡(@sUserID,@sClaimMethod,@sInvoiceNum,@sInvoiceDate,@sBuyCity)
¡¡return  @@IDENTITY
¡¡GO
//µ÷Óô洢¹ý³Ì´úÂë
¡¡Dim CN As New SqlConnection()
¡¡Dim InvoiceID As String
¡¡Try
    CN.ConnectionString = DBConStr
    CN.Open()
    Dim CMD As SqlCommand
    CMD = New SqlCommand(AddNewInvoiceInfo, CN)
    CMD.CommandType = CommandType.StoredProcedure
    CMD.Parameters.Add(New SqlParameter(@sUserID, SqlDbType.Int))
    CMD.Parameters(@sUserID).Value = CInt(UserID.Text)
    CMD.Parameters.Add(New SqlParameter(@sClaimMethod, SqlDbType.VarChar, 50))
    CMD.Parameters(@sClaimMethod).Value = TransName.Text
    CMD.Parameters.Add(New SqlParameter(@sInvoiceNum, SqlDbType.VarChar, 50))
    CMD.Parameters(@sInvoiceNum).Value = InvoiceNum.Text
    CMD.Parameters.Add(New SqlParameter(@sInvoiceDate, SqlDbType.DateTime))
    CMD.Parameters(@sInvoiceDate).Value = InvoiceDate.SelectedDate.Date
    CMD.Parameters.Add(New SqlParameter(@sBuyCity, SqlDbType.VarChar, 50))
    CMD.Parameters(@sBuyCity).Value = BuyCity.Text
    CMD.Parameters.Add(New SqlParameter(@sInvoiceID, SqlDbType.Int))
    CMD.Parameters(@sInvoiceID).Direction = ParameterDirection.ReturnValue
    CMD.ExecuteNonQuery()
    InvoiceID = CMD.Parameters(@sInvoiceID).Value.ToString()
    CMD.Dispose()
¡¡Catch ex As Exception
 &


Ïà¹ØÎĵµ£º

ʹÓà ASP.NET 2.0 ObjectDataSource ¿Ø¼þ

 Stephen Walther
Superexpert
ÊÊÓÃÓÚ£º
Microsoft ASP.NET 2.0
Microsoft Visual Studio 2005
¼ò½é
ÔÚ Microsoft ASP.NET 2.0 Framework ÖУ¬Êý¾Ý¿â·ÃÎʵõ½Á˼«´óµÄ¼ò»¯¡£ÀûÓÃÈ«Ð嵀 SqlDataSource ¿Ø¼þ£¬ÄúÎÞÐè±àдһÐдúÂë¾Í¿ÉÒÔÑ¡Ôñ¡¢¸üС¢²åÈëºÍɾ³ýÊý¾Ý¿âÊý¾Ý¡£
Éú³É¼òµ¥µÄÓ¦ÓóÌÐòʱ£¬SqlDataSource ¿ ......

ÓйØASP.NETÖеÄUpdateProgress¿Ø¼þµÄʹÓÃ

 Ç°Ì¨´úÂë
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateProgress.aspx.cs" Inherits="UpdateProgress" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" Ta ......

ÓÉdzÈëÉîÌÖÂÛAsp.net×ÊÔ´Îļþ

ƪһ£º»ù´¡Ó¦ÓÃ
×ÊÔ´Îļþͨ³£±»ÓÃÔÚ¶àÓïÑÔ°æ±¾µÄ²úÆ·ºÍÏîÄ¿µ±ÖУ¬Í¨¹ý¼òµ¥µÄÉèÖúÍÒýÓü´¿ÉʵÏÖ²»Í¬ÓïÑÔµÄת±ä£¬Ï൱µÄ·½±ã¡£ÔÚ.NetÖÐÒ»°ã¿ÉÒÔ°üÀ¨×Ö·û´®¡¢Í¼Ïñ¡¢Í¼±ê¡¢ÒôƵ¡¢Îı¾ÎļþµÈ£¬ÓÐÏ൱һ²¿·ÖÈ˺͹«Ë¾ÔÚ¿ª·¢µÄ¹ý³ÌÖж¼°ÑÕâЩ×ÊÔ´·ÅÖÃÔÚרÃŵÄÎļþ¼ÐÖУ¨ÎÒºÍÎÒÄ¿Ç°µÄ¹«Ë¾Ò²Èç´Ë£©£¬Í¨¹ýÏà¶Ô·¾¶¼ÓÒÔÒýÓã¬Ò²ºÜ·½±ã ......

ASP.Net ÑéÖ¤Âë

¡¡¡¡×Ô´ÓÉÏ´ÎÓÐÁËÒ»´ÎÆƽâÑéÖ¤ÂëµÄ¾­Ñéºó£¬¾ÍÒ»Ö±Ïë×Ô¼ºÐ´¸öÏñÑùµãµÄÑéÖ¤Âë¡£½ñÌìÎÞÁÄËùÒÔ¾ÍдÁË£¬×ÜÌåÉÏÀ´Ëµ»¹ËãºÜÂúÒâ¡£¾ÍÊÇÓÐʱ¸´ÔÓµÃÈâÑÛ¶¼¿´²»³öÊÇɶ£¨ÕâÒ²¸úͼƬ̫СÓйØϵ£©¡£
¡¡¡¡Õâ¸öÑéÖ¤ÂëÖ§³ÖËæ»ú×ÖÌå¡¢×ÖÌå´óС¡¢×ÖÌåÑùʽ£¨ÆÕͨ¡¢´ÖÌ塢бÌ壩¡¢×ÖÌåÑÕÉ«¡¢×Ô¶¨Òå×Ö·ûµÈ¡£
¡¡¡¡´úÂëÖеÄlibFontÊÇ×ÖÌå¿â£¬libC ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ