Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C#:How to create a common class with AN INSERT method for many FORMS

C#:How to create a common class with AN INSERT method for many FORMS

Scheduled Pinned Locked Moved C#
tutorialcsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kssknov
    wrote on last edited by
    #1

    HI , i want to know how to create a class which has an INSERT method for several forms. for example: i have 3 forms , FORM1,FORM2 FORM3. FORM1 has 3 textboxes. FORM2 has 7 textboxes . FORM3 has 20 textboxes. Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms. i had already done this task but seperate INSERT methods for individual forms. now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task. can anybody give me solution. thanks

    KSSK

    C 1 Reply Last reply
    0
    • K kssknov

      HI , i want to know how to create a class which has an INSERT method for several forms. for example: i have 3 forms , FORM1,FORM2 FORM3. FORM1 has 3 textboxes. FORM2 has 7 textboxes . FORM3 has 20 textboxes. Each textbox contrl has datas with differen datatypes.i want to create a common class with INSERT method which inserts data in different table for its corresponding calls made by every forms. i had already done this task but seperate INSERT methods for individual forms. now if i try to user a common insert method for the 3 form with diff contrls and datatypes, i cant get a clear idea to accomplish this task. can anybody give me solution. thanks

      KSSK

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      kssknov wrote:

      i want to know how to create a class which has an INSERT method for several forms.

      It sounds like you are asking how to create a DAL. * What is a DAL? (Part 1)[^] * What is a DAL? (Part 2)[^] * What is a DAL? (Part 3)[^] * What is a DAL? (Part 4)[^]

      Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups