PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/Web/UserControls/AddBank.ascx.cs

http://github.com/simonbegg/Invoicing
C# | 33 lines | 30 code | 3 blank | 0 comment | 0 complexity | ab9a408dbfdb8cdcb44389a9b2942dc1 MD5 | raw file
  1. using System;
  2. using System.Collections;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Data.Linq;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Security;
  9. using System.Web.UI;
  10. using System.Web.UI.HtmlControls;
  11. using System.Web.UI.WebControls;
  12. using System.Web.UI.WebControls.WebParts;
  13. using System.Xml.Linq;
  14. using DAL;
  15. public partial class UserControls_AddBank : System.Web.UI.UserControl
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. }
  20. protected void btnAddBank_Click(object sender, EventArgs e)
  21. {
  22. InvoicingDataContext db = new InvoicingDataContext();
  23. BankDetail bank = new BankDetail
  24. {
  25. bank_name = this.txtBankName.Text,
  26. sort_code = Convert.ToInt32(this.txtSortCode.Text),
  27. account_number = this.txtAccountNumber.Text
  28. };
  29. }
  30. }