UpdateNews.aspx?ID={0} 使用存储过程USE [GUILIAN]
GO
/****** 对象: StoredProcedure [dbo].[SelectNews] 脚本日期: 09/13/2007 19:15:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[SelectNews]
-- Add the parameters for the stored procedure here
@NewsID int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
Select * from News Where NewsID= '@NewsID '
END
接下来就是将UpdateNews.aspx里的新闻编辑的各个控件如NewsTitle,NewsAuthor,等与数据库里的值绑定。以前ASP的会现在转到C#语言的还不会。希望大家帮帮忙。给个例子
------解决方案--------------------------------------------------------
sf