Results 1 to 3 of 3

Thread: windows form using C#.net

  1. #1
    FosterWood is offline Senior Member
    Join Date
    Dec 2009
    Posts
    215
    Rep Power
    3

    Default windows form using C#.net

    Hi, I am developing one windows form using C#.net. I am inserting some values into SQl database. In that table five columns there. But I would like to insert three columns only. When I am clicking another button then reaming two values also insert into that table. I am not getting any solution for my problem and need some help for solving that problem.

  2. #2
    MoralesMyers is offline Senior Member
    Join Date
    Dec 2009
    Posts
    202
    Rep Power
    3

    Default

    • first button

    Insert into table names (@column1, @column2, @column3,'',''...)

    • second button

    Update tablename set column4=@column4,column5=@column5 where column1=@column1 and column2=@column2 and column3=@column3

    Hope it will fix your problem.

  3. #3
    PowellParker is offline Senior Member
    Join Date
    Dec 2009
    Posts
    210
    Rep Power
    3

    Default

    First of all insert 5 columns but 2 columns are empty value that’s null value when we click another button update query is used insert remaining columns (use where condition)

Similar Threads

  1. Form factors
    By AndersonDiaz in forum other peripherals
    Replies: 0
    Last Post: 10-19-2010, 02:08 PM
  2. Replies: 0
    Last Post: 09-16-2009, 06:46 AM
  3. What is SSI CEB form factor?
    By rony123 in forum Motherboards & Memory
    Replies: 1
    Last Post: 08-19-2009, 11:59 AM
  4. Displaying a form
    By carlos in forum Everything Else
    Replies: 0
    Last Post: 04-08-2009, 06:00 AM
  5. Form Factor
    By techno23 in forum Hard Disk
    Replies: 0
    Last Post: 03-21-2008, 09:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48