473,473 Members | 4,189 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Update button is not getting fired.

1 New Member
Hi I am using GridView in ASPX page

Expand|Select|Wrap|Line Numbers
  1. <asp:GridView AutoGenerateEditButton ="false" id="siGridView" runat="server" 
  2.                                   Font-Names="Cordia New" Font-Size="Smaller" 
  3.                                   AllowSorting="True" AllowPaging ="true" PageSize="20" 
  4.                                   HorizontalAlign="left" 
  5.                                   onsorting="switchGridView_Sorting" 
  6.                                   Font-Bold="False" 
  7.                                   onrowcancelingedit="switchGridView_RowCancelingEdit" 
  8.                                   onrowediting="switchGridView_RowEditing" 
  9.                                   onrowupdating="switchGridView_RowUpdating" Width="1170px">
  10.                                 <RowStyle HorizontalAlign="left"  BackColor="#E6E6FA" Font-Size="Medium"/>
  11.                                 <SelectedRowStyle Font-Size="Medium" />
  12.                                 <HeaderStyle HorizontalAlign="Center" BackColor="#CCCCFF" ForeColor="#003366" />
  13.                                 <columns>
  14.                                     <asp:commandfield 
  15.                                         showeditbutton="true"
  16.                                         ControlStyle-Height="25px"
  17.                                         ControlStyle-Width="75px"
  18.                                         ControlStyle-Font-Names="Cordia New"
  19.                                         ControlStyle-Font-Size="12pt"
  20.                                         ControlStyle-Font-Bold="true"
  21.                                         ButtonType="Button"
  22.                                         headertext="Edit">
  23.                                         <ControlStyle
  24.                                             Font-Bold="True" 
  25.                                             Font-Names="Cordia New" 
  26.                                             Font-Size="10pt" 
  27.                                             Height="20px" 
  28.                                             Width="40px" ForeColor="Black">
  29.                                         </ControlStyle>
  30.                                     </asp:commandfield>
  31.                                 </columns>
  32.                                 <AlternatingRowStyle BackColor="White" />
  33.                     </asp:GridView>
  34.  
All Gridview command is getting fired,but update button is not getting fired.
Please help me to resolve this issue.

Thanks,
Shekhar
Feb 23 '10 #1
3 1208
tlhintoq
3,525 Recognized Expert Specialist
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Feb 23 '10 #2
MrMancunian
569 Recognized Expert Contributor
Put a breakpoint at switchGridView_RowUpdating in your .vb-/.c-code and see what's wrong... If that doesn't work, post some code that handles the switchGridView_RowUpdating...

Steven
Feb 24 '10 #3
semomaniz
210 Recognized Expert New Member
Can you post your code for row updating event (switchGridView_RowUpdating) ?
Feb 25 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
5
by: Alastair Anderson | last post by:
I have created a very simple form with which I would like to update a single value in a single row of a database as a proof of concept. The relevant parts of the form are a DBWebTextBox (which...
1
by: Demetri | last post by:
I have a datagrid on an aspx page with one column added via property builder - the edit/update/cancel. In addition there is a dropdownlist which has a list of table names. Upon selecting one of...
1
by: siaj | last post by:
Helo All, If some one has faced a similar issue.. My datagrid Update command is not getting fired in fact it seems that the no event fires on clicking the update link. Although the cancel and the...
4
by: siaj | last post by:
Hello All, If some one has faced a similar issue.. My datagrid Update command is not getting fired in fact it seems that the no event fires on clicking the update link. Although the cancel and the...
0
by: Erik | last post by:
Why isn't my update method getting called? Pasted below is an aspx from a 1.1 application I'm working on. It has two textboxes and a button for inserting data into the database, and a datagrid...
0
by: Rick | last post by:
Has anyone heard about an ASP.NET 2.0 bug with retrieving values on the fly from a GridView control when in Edit mode ? I have a GridView built with an Edit button. When the Edit button is...
1
by: gabe | last post by:
How do you call a client side javascript callback method after an update panel has posted back to the server? I have two update panels (A + B) with a gridview in each panel. GridView B has a...
3
by: Donald A. Fisher | last post by:
Hello. I've been working a vb project and have a form with a button on it that performs some actions after disabling the button when clicked: Code disabling button and starting actions: Private...
11
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.