Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...i have a id,subject and a data feilds in the database and using a simple form i have inserted these values into database and displayed the details on a grid just below the form.my requirement is that when i click an edit button on that particular record in the grid..i want to transfer onto a different page.in the other page i want a similar form to be displayed with id,subject and date fields and data in the controls should already be present .if i want to edit some data ...i will and then i click on update button so that the data is updated and then the page should be redirected to the previous page where i displayed all the records...can anyone send me full code so that it can solve my requirement....and also if i click on delete on a particular row in the grid that record should be deleated.
thanks
Posted

Sridharkameshetty wrote:
can anyone send me full code so that it can solve my requirement


I think I must clarify something to you. This is a place where people from whole round the world participate voluntarily to help fellow coders who have tried something and have specific programming issues.
If you are looking for someone who would write code for your requirement, this is not the right place.
But since we are here for help, I will help you with this too. Here are few links which would probably solve your issue.
http://www.rentacoder.com/RentACoder/DotNet/default.aspx[^]
www.getacoder.com/[^]
 
Share this answer
 
Sridharkameshetty wrote:
can anyone send me full code so that it can solve my requirement....


I clearly agree with Mr.Ankur what he said is 100% right

Sridharkameshetty wrote:
and also if i click on delete on a particular row in the grid that record should be deleated.


Sir please hire me for the job and all your requirements (regarding the project in c# only) will be satisfied :laugh:

Now about your so called requirement i would suggest u, use SqlDataAdapter and its update method and you are done
Now i have the bad habit of usually helping people with baked code but from now its not gona happen, if u want a baked code from me then please update your question with the code that u tried or use my suggestion of the update method thats all folks...

Grab a good book on ado.net for doing all this small small queries

Thanks & Regards
Radix :rose:
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900