Click here to Skip to main content
11,805,604 members (53,701 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET

I have a default page. In that I have two buttons namely Edit and Save.

I have 5 textboxes in that page. At first instance, I will insert the values in the textbox and save it by clicking on save button. Later if I click on edit button, I will get the values what I had entered previously. Then I want to update the same record on save button click. How can I do it?

Posted 7-Nov-12 1:27am
faisal23 at 7-Nov-12 7:33am
You are going wrong bro you can save data but when you are edit some record you have to fetch data on the basis of some id. And on save button you can perform both operation save and update.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It sounds like you're looking for a guide to building a basic CRUD application (Create Read Update Delete), so have a look at the stuff on[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 310
1 Richard Deeming 225
2 Sergey Alexandrovich Kryukov 170
3 Abhinav S 128
4 ppolymorphe 125
0 OriginalGriff 3,300
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100