コード例 #1
0
    protected void bttnseach_Click(object sender, EventArgs e)
    {
        try
        {
            lblmssg.Visible = true;
           string deletuser = txtSrch.Text.Trim();

          if((!string.IsNullOrEmpty(deletuser)))
          {
            var obj = new ROPAUtil();
            int result = Convert.ToInt16(obj.Deleteuser(deletuser));

            if (result == 1)
            {

                lblmssg.Text = "Your Application has been Deleted succesfully";
                Delteuser.Visible = false;
            }
            else
            {
                lblmssg.Text = "Not found";
            }
          }
        }
        catch (Exception )
        {

        }
    }
コード例 #2
0
ファイル: LoginPage.aspx.cs プロジェクト: vanisandeep/yogyata
    private void GetUserName()
    {
        ROPAUtil obj = new ROPAUtil();

           string UserEmail= obj.GetUserDetailsByEmailId(txtUserName.Text.Trim());
           if ((!string.IsNullOrEmpty(UserEmail)))
           {
           if (txtPassword.Text.Trim() == UserEmail)
           {
               Response.Redirect("~/ROPA/FormsUsing WebuserControllers/FeedBackUsingWebUSer.aspx");
           }
           else
           {

               string message = obj.LoginFailMessage();
               System.Text.StringBuilder sb = new System.Text.StringBuilder();

               sb.Append("<script type = 'text/javascript'>");

               sb.Append("window.onload=function(){");

               sb.Append("alert('");

               sb.Append(message);

               sb.Append("')};");

               sb.Append("</script>");

               ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", sb.ToString());

           }
           }
    }
コード例 #3
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {
            ROPAUtil obj = new ROPAUtil();

            bool x = obj.CheckAvliablity(txtEmailId.Text.Trim());
            if ((x))
            {
                lblchAvl.Text = obj.CheckAvliablitySuccessMessage();
                lblchAvl.Visible = true;
                lblchAvl.ForeColor = Color.Red;
                return;
            }

            List<UploadFile> L = ResolveList();

            int result = obj.InsertRecord(txtFrstName.Text.Trim(), txtLastName.Text.Trim(), Convert.ToInt32(ddlRoleId.SelectedValue), txtpsswrd.Text.Trim(), txtEmailId.Text.Trim(), L);

            if (result == 1)
            {
                lblmssg.Visible = true;
                lblmssg.Text = obj.InsertedMessage();
                tblreg.Visible = false;
                ClearSession();
            }

        }
        catch (Exception)
        {

        }
    }
コード例 #4
0
    private void BindGridviewData()
    {
        try
        {
            var obj = new ROPAUtil();
            gvDetails.DataSource = obj.FilesToGrid();
            gvDetails.DataBind();

        }
        catch (Exception)
        {

        }
    }
コード例 #5
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        BindGrid();

        if (txtfeedbackcommnts.Text != null)
        {
        int number = Convert.ToInt32(lblID.Text);

        var obj = new ROPAUtil();
        obj.UPdateFeedbackdetails(number, txtfeedbackcommnts.Text.Trim());

           BindGrid();
         Popup(false);
        }
    }
コード例 #6
0
ファイル: Feedback.ascx.cs プロジェクト: vanisandeep/yogyata
    protected void SbmtBttnId_Click(object sender, EventArgs e)
    {
        ROPAUtil obj = new ROPAUtil();
        int result = obj.InsertFeedBackRecord(NameTxt.Text.Trim(), EmailIdTxt.Text.Trim(), txtphNumb.Text.Trim(), txtAddress.Text.Trim(), ddlCountry.SelectedValue, CommentTxt.Text.Trim());

        if (result == 1)
        {
            //string mssg = obj.InsertedMessage();
            lblmssg.Visible = true;
            lblmssg.Text = obj.InsertedMessage();
            Div.Visible = false;
        }
        else
        {
            // string FailMssg = obj.FailMessage();
            lblmssg.Visible = true;
            lblmssg.Text = obj.FailMessage();
        }
    }
コード例 #7
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string emailid;
        emailid = txtInt.Text.Trim();
        ROPAEntities context = new ROPAEntities();

        var Query = (from a in context.UpcmomingSurveyors where a.EMAILID == emailid select a).FirstOrDefault();
        if (Query != null)
        {
            ROPAUtil obj = new ROPAUtil();
           Query.FirstName = txtFrstName.Text.Trim();
           Query.LastName = txtLastName.Text.Trim();
           Query.ApplyAsRole = Convert.ToInt32(ddlRoleId.SelectedValue);
           Query.Password = txtpsswrd.Text.Trim();
           Query.EMAILID = txtEmailId.Text.Trim();
           Query.ModifedDate = DateTime.Now;
           Query.AppId = 2;
           context.SaveChanges();
         }
    }
コード例 #8
0
    private void BindGridviewData()
    {
        try
        {
            List<UploadFile> L = ResolveList();
            //	if (L.Count == 0) return;

            ROPAUtil obj = new ROPAUtil();
            gvDetails.DataSource = L;
            gvDetails.DataBind();
        }
        catch(Exception e)
        { }
    }
コード例 #9
0
    private void BindGridviewData()
    {
        List<UploadFile> L = ResolveList();
        if (L.Count == 0) return;

        ROPAUtil obj = new ROPAUtil();
        gvDetails.DataSource = L;
        gvDetails.DataBind();
    }
コード例 #10
0
 void BindGrid()
 {
     var obj = new ROPAUtil();
     grdFddfrm.DataSource = obj.FeedbackDetailsToGrid();
     grdFddfrm.DataBind();
 }
コード例 #11
0
 private void BindGridviewData()
 {
     ROPAUtil obj = new ROPAUtil();
     gvDetails.DataSource = obj.FilesToGrid();
     gvDetails.DataBind();
 }