Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-15
4
Medium Priority
?
675 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
  • 2
4 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

886 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