Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-03-15
4
Medium Priority
?
672 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

688 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