Exemplo n.º 1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string depid = TextBox1.Text;
        string dname = TextBox2.Text;
        int    res   = connect.addDepart(depid, dname);// functn call

        if (res > 0)
        {
            Response.Redirect("~/Default.aspx");//agr fillhogya hai details toh vallue dikha de
        }
        else
        {
            Response.Write("Error!!");
        }
    }