Exemplo n.º 1
0
 protected void ddlFileNo_SelectedIndexChanged(object sender, EventArgs e)
 {
     dvIDF.DataSource = null;
     dvIDF.DataBind();
     lvInventor.DataSource = "";
     lvInventor.DataBind();
     LvInventionSource.DataSource = "";
     LvInventionSource.DataBind();
     dvIndian.DataSource = null;
     dvIndian.DataBind();
     dvCommercial.DataSource = null;
     dvCommercial.DataBind();
     lvIntl.DataSource = "";
     lvIntl.DataBind();
     dvIntl.DataSource = null;
     dvIntl.DataBind();
     GVSD.DataSource = null;
     GVSD.DataBind();
     imgBtnClear.Visible     = false;
     ViewState["IDF"]        = "0";
     ViewState["Inventor"]   = "0";
     ViewState["Source"]     = "0";
     ViewState["Indian"]     = "0";
     ViewState["Commercial"] = "0";
     ViewState["Intl"]       = "0";
     ViewState["Documents"]  = "0";
 }
Exemplo n.º 2
0
 protected void imgBtnClear_Click(object sender, ImageClickEventArgs e)
 {
     ddlFileNo.Text   = "";
     dvIDF.DataSource = null;
     dvIDF.DataBind();
     lvInventor.DataSource = "";
     lvInventor.DataBind();
     LvInventionSource.DataSource = "";
     LvInventionSource.DataBind();
     dvIndian.DataSource = null;
     dvIndian.DataBind();
     dvCommercial.DataSource = null;
     dvCommercial.DataBind();
     lvIntl.DataSource = "";
     lvIntl.DataBind();
     dvIntl.DataSource = null;
     dvIntl.DataBind();
     GVSD.DataSource = null;
     GVSD.DataBind();
     imgBtnClear.Visible     = false;
     ViewState["IDF"]        = "0";
     ViewState["Inventor"]   = "0";
     ViewState["Source"]     = "0";
     ViewState["Indian"]     = "0";
     ViewState["Commercial"] = "0";
     ViewState["Intl"]       = "0";
     ViewState["Documents"]  = "0";
 }
Exemplo n.º 3
0
 protected void lbtnSource_Click(object sender, EventArgs e)
 {
     if (ViewState["Source"].ToString() == "0")
     {
         con.ConnectionString = ConfigurationManager.ConnectionStrings["PATENTCN"].ConnectionString;
         string         sql = "select SlNo,ProjectNumber,ProjectType,FundingAgency,ProjectTitle from InventionSource where fileno like '" + ddlFileNo.Text.Trim() + "'";
         SqlDataAdapter sda = new SqlDataAdapter(sql, con);
         DataTable      dt  = new DataTable();
         sda.Fill(dt);
         LvInventionSource.DataSource = dt;
         LvInventionSource.DataBind();
         con.Close();
         imgBtnClear.Visible = true;
         ViewState["Source"] = "1";
     }
     else
     {
         LvInventionSource.DataSource = "";
         LvInventionSource.DataBind();
         ViewState["Source"] = "0";
     }
 }