Solved

gridview Update query access at  code behind in c#.net

Posted on 2011-03-15
4
668 Views
Last Modified: 2012-08-14
Hi,
  Hello sir,
                I am working on gridview data control. i am trying to execute update query at codebehind . in gridview  using update button click  event, update query will execute code behind. could you please help for my problem.thanks in advance..
0
Comment
Question by:CPSRI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 35135700
Are you working databind (fe with an sqldatasource ?)
Insert Update Edit Delete record in GridView using SqlDataSource ASP.NET
http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert-edit.html 
http://support.microsoft.com/kb/308507

Or do you want to write your  own update-query, take a look at the sqlCommand-object
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson03.aspx
0
 

Author Comment

by:CPSRI
ID: 35162628
hello,
 thanks sir for given these links .. These links are helped to understand code behind gridview using update ,delete command .. once again giving thanks for helped.
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 35791468
I think that mine answer (#35135700) is correct to accept and not his own comment that the links are usefull ....
So I would to see my answer picked as correct answer
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question