Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 677
  • Last Modified:

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

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
CPSRI
Asked:
CPSRI
  • 2
1 Solution
 
DhaestCommented:
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
 
CPSRIAuthor Commented:
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
 
DhaestCommented:
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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now