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;
using hqgl.user;
public partial class general_role_role_edit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        HtmlInputText temp = (HtmlInputText)GridView1.Rows[0].FindControl("PRIV_NO");
        string priv_no = temp.Value;
        temp = (HtmlInputText)GridView1.Rows[0].FindControl("PRIV_NAME");
        string priv_name = temp.Value;
        HtmlInputHidden htemp = (HtmlInputHidden)GridView1.Rows[0].FindControl("USER_PRIV");
        string user_priv = htemp.Value;
        SqlDataSource1.UpdateParameters["PRIV_NO"].DefaultValue=priv_no;
        SqlDataSource1.UpdateParameters["PRIV_NAME"].DefaultValue = priv_name;
        SqlDataSource1.UpdateParameters["USER_PRIV"].DefaultValue = user_priv;
        SqlDataSource1.Update();
        Response.Redirect("default.aspx");
    }
}
