ajax.net对数据库的插入实例(2)


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SqlDataSource1.InsertParameters["no"].DefaultValue = https://www.jb51.net/wghost/archive/2011/12/01/Request.QueryString["no"].ToString();
        SqlDataSource1.InsertParameters["name"].DefaultValue = https://www.jb51.net/wghost/archive/2011/12/01/Request.QueryString["name"].ToString();
        SqlDataSource1.Insert();
    }

}

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjgsfg.html