示例#1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        clsdetfrm    obj    = new clsdetfrm();
        clsdetfrmprp objprp = new clsdetfrmprp();

        objprp.frmtit        = title.Text;
        objprp.frmcod        = Convert.ToInt32(Session["frmcod"]);
        objprp.frmdate       = Convert.ToDateTime(rtd.Text);
        objprp.frmurl        = urls.Text;
        objprp.frmdesc       = requirements.Text;
        objprp.frmreqcont    = DropDownList1.SelectedValue.ToString();
        objprp.frmsubmitdate = DateTime.Now;
        obj.update_rec_detfrm(objprp);
        getvaljj("Updated");
        Session["update"] = Convert.ToInt32(Session["frmcod"]);
        Response.Redirect("det_view.aspx");
        show.Text = "changes request send Successfully";
    }
示例#2
0
    //calender ending
    protected void Button1_Click(object sender, EventArgs e)
    {
        clsdetfrm    obj    = new clsdetfrm();
        clsdetfrmprp objprp = new clsdetfrmprp();

        objprp.frmtit        = title.Text;
        objprp.frmregcod     = Convert.ToInt32(Session["cod"]);
        objprp.frmdate       = Convert.ToDateTime(rtd.Text);
        objprp.frmurl        = urls.Text;
        objprp.frmdesc       = requirements.Text;
        objprp.frmreqcont    = DropDownList1.SelectedValue.ToString();
        objprp.frmsubmitdate = DateTime.Now;
        objprp.frmpayment    = "none";
        objprp.pdt           = default(DateTime);
        objprp.rdt           = default(DateTime);
        //  if (Button1.Text == "send details")
        //  {
        obj.save_rec_detfrm(objprp);
        getvaljj();
        Response.Redirect("default2.aspx");
        button_clear();
    }