protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         // fetch the en-GB culture
         CultureInfo ukCulture = new CultureInfo("en-GB");
         // pass the DateTimeFormat information to DateTime.Parse
         DateTime dt = DateTime.Parse(txtValue.Text, ukCulture);
         InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
         InvApp.UpdateSetValueDate(dt, MySessionManager.InvAppID);
     }
     catch (Exception ex) { }
 }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            // fetch the en-GB culture
            CultureInfo ukCulture = new CultureInfo("en-GB");
            // pass the DateTimeFormat information to DateTime.Parse
            DateTime dt=DateTime.Parse(txtValue .Text, ukCulture);
            InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
            InvApp.UpdateSetValueDate(dt,MySessionManager.InvAppID);


        }
        catch (Exception ex) { }
    }
Exemplo n.º 3
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            editFlag = true;
            CultureInfo ukCulture = new CultureInfo("en-GB");
            DateTime    dt        = DateTime.Parse(txtValue.Text, ukCulture);
            InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
            InvApp.UpdateSetValueDate(dt, MySessionManager.InvAppID);


            paymentschedule();
        }
        catch (Exception ex) { }
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try 
        {
            editFlag = true;
            CultureInfo ukCulture = new CultureInfo("en-GB");
            DateTime dt = DateTime.Parse(txtValue.Text, ukCulture);
            InvestmentDSTableAdapters.GetInvestmentAppTableAdapter InvApp = new InvestmentDSTableAdapters.GetInvestmentAppTableAdapter();
            InvApp.UpdateSetValueDate(dt, MySessionManager.InvAppID);


            paymentschedule();
        
        
        }
        catch (Exception ex) { }

    }