Solved

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

Posted on 2011-03-15
4
651 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 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now