473,388 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

ATLAS, Gridview, EditCommand event not firing

I have an update panel that contains a gridview.
There are 2 triggers: one for a search button that is outside the panel
and one for the gridview EditCommand Event.
The search works fine, the button click event fires, no problem.
But the event for the EditCommand does not fire. Any Ideas? Any one
else seen this?

Here is some code:

<cc2:ScriptManager ID="atlasScriptManager" runat="server"
EnablePartialRendering="True">
</cc2:ScriptManager>

....

<cc2:UpdatePanel ID="atlasUpdatePanel"
runat="server" EnableViewState="False">
<ContentTemplate>
&nbsp;<asp:DataGrid ID="dgdALI"
runat="server" CellPadding="4"
ForeColor="#333333"
GridLines="None">
<FooterStyle BackColor="#507CD1"
Font-Bold="True" ForeColor="White" />
<EditItemStyle BackColor="#2461BF"
/>
<SelectedItemStyle
BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF"
ForeColor="White" HorizontalAlign="Center" />
<AlternatingItemStyle
BackColor="White" />
<ItemStyle BackColor="#EFF3FB" />
<HeaderStyle BackColor="#507CD1"
Font-Bold="True" ForeColor="White" />
<Columns>
<asp:EditCommandColumn
CancelText="Cancel" EditText="Edit"
UpdateText="Update"></asp:EditCommandColumn>
<asp:ButtonColumn
CommandName="Delete" Text="Delete"></asp:ButtonColumn>
<asp:ButtonColumn
CommandName="Select" Text="Select"></asp:ButtonColumn>
</Columns>
</asp:DataGrid>
<asp:Label ID="Label17" runat="server"
Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<cc2:ControlEventTrigger
ControlID="btnSearch" EventName="Click" />
<cc2:ControlEventTrigger
ControlID="dgdALI" EventName="EditCommand" />
</Triggers>
</cc2:UpdatePanel>
Thanks for any help.

P.S.
(I also get a Javascript error, related to ATLAS, for both the button
click and the Edit command)

error text:
Line: 8522276
Char: 3
Error: Syntax Error
Code: 0

Sep 19 '06 #1
1 2229
Can't be sure because the code doesn't render well, but it might be because you've enclosed the triggers inside your update panel. Also DataGrid is an ASP .Net 1.1 control, I'd be using the GridView Control just to be sure.
---
Posted via www.DotNetSlackers.com
Sep 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bmoman | last post by:
Hell I have a datagrid with an Edit, Update, Cancel button on it. When I click the edit button the first time, the EditCommand event is not fired, but when I click the same button immediately...
5
by: Steve M | last post by:
Why are my sessions lasting so long? I have them set to 20 minute timeout in config file? The Session_End event is getting called an hour or more sometimes--well after the user has stopped...
0
by: Mike | last post by:
I've got an app with a DataTable that gets passed around and modified by datagrids on 3 different asp.net pages. Not all columns need to be displayed, but I need them all in the datagrid so I can...
2
by: Dan | last post by:
I have an aspx page with a form on it. There are a couple of textboxes and an ImageButton. The page is loaded from another page using Server.Transfer. When I click on the ImageButton, the...
3
by: | last post by:
Hello, I am trying to get add a product to a cart from a gridview control when a button in the gridview is clicked. I have a book on how to do this in asp.net 2.0 but it is done by specifying...
28
by: Tim_Mac | last post by:
hi, i'm new to .net 2.0, and am just starting to get to grips with the gridview. my page has autoEventWireUp set to true, which i gather is supposed to figure out which handlers to invoke when...
16
by: tommaso.gastaldi | last post by:
Hello, A probably dumb question... does anyone know hot to avoid that if one keep the mouse pressed on an arrow of the numericUpDown it continues to fire events (it uses evidently a timer) ?...
13
by: AG | last post by:
I have a gridview that I bind to a List(of Type) at runtime. Not using a datasource control. The gridview has a template column with an imagebutton whose commandname is set to 'Delete'. The...
0
by: progman417 | last post by:
Hello, I've got a Web User Control containing a gridview with a "select record" button on each row. When the user clicks the button I want to call an event handler in the main page. My...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.