Example #1
0
    protected void RadButton2_Click(object sender, EventArgs e)
    {
        SqlDataSourceNewPFA.Insert();

        SqlDataSourceGetNewPFA.SelectCommand = "select max(PFA_ID) as PFAID from eeiuser.freight_pfa where REQUESTOR = 'Dan West'";
        DataView a = (DataView)SqlDataSourceGetNewPFA.Select(DataSourceSelectArguments.Empty);

        type  = "PFAID";
        value = a[0]["PFAID"].ToString();

        if (value != String.Empty)
        {
            Response.Redirect("PFA.aspx?Type=" + type + "&Value=" + value);
        }
    }
Example #2
0
 protected void RadButton2_Click(object sender, EventArgs e)
 {
     SqlDataSourceNewPFA.Insert();
 }