473,545 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:ScriptMana ger ID="atlasScript Manager" runat="server"
EnablePartialRe ndering="True">
</cc2:ScriptManag er>

....

<cc2:UpdatePane l ID="atlasUpdate Panel"
runat="server" EnableViewState ="False">
<ContentTemplat e>
&nbsp;<asp:Data Grid ID="dgdALI"
runat="server" CellPadding="4"
ForeColor="#333 333"
GridLines="None ">
<FooterStyle BackColor="#507 CD1"
Font-Bold="True" ForeColor="Whit e" />
<EditItemStyl e BackColor="#246 1BF"
/>
<SelectedItemSt yle
BackColor="#D1D DF1" Font-Bold="True" ForeColor="#333 333" />
<PagerStyle BackColor="#246 1BF"
ForeColor="Whit e" HorizontalAlign ="Center" />
<AlternatingIte mStyle
BackColor="Whit e" />
<ItemStyle BackColor="#EFF 3FB" />
<HeaderStyle BackColor="#507 CD1"
Font-Bold="True" ForeColor="Whit e" />
<Columns>
<asp:EditComman dColumn
CancelText="Can cel" EditText="Edit"
UpdateText="Upd ate"></asp:EditCommand Column>
<asp:ButtonColu mn
CommandName="De lete" Text="Delete"></asp:ButtonColum n>
<asp:ButtonColu mn
CommandName="Se lect" Text="Select"></asp:ButtonColum n>
</Columns>
</asp:DataGrid>
<asp:Label ID="Label17" runat="server"
Text="Label"></asp:Label>
</ContentTemplate >
<Triggers>
<cc2:ControlEve ntTrigger
ControlID="btnS earch" EventName="Clic k" />
<cc2:ControlEve ntTrigger
ControlID="dgdA LI" EventName="Edit Command" />
</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 2238
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
1212
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 after the first click, the even will fire correctly Has anyone had this problem before Thanks.........Bill
5
2795
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 interacting with my site. Anyone have any insight? Thanks in advance
0
1049
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 call the LoadDataRow method to update the DataTable "in place". I've been using boundcolumns for the invisible fields, which worked fine, but now...
2
1991
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 Page_Load event immediately fires on the codebehind page and then click event fires. When this happens, the Page.IsPostBack property is true in the...
3
5579
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 the "DataTextField" as the productID of the product that I want to add. This works but the button displays the productID as the text instead of "Add...
28
10229
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 appropriate based on your method names . the GridView has OnRowCommand="GridView1_RowCommand" in the aspx. my problem is that the RowCommand event...
16
9161
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) ? I want 1 event for each click, and no timer activation. I have tried using disable within the handler but does not work.
13
41978
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 footer template has an commandbutton with the commandname set to 'Insert'. Both buttons cause postback, however the RowCommand event does not fire. ...
0
1861
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 problem is that the event handler hasn't been set when I check it in the GridView RowCommand event, i.e. if (btnSelectRecordHandler != null) ...
0
7486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7676
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7776
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5347
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4965
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3473
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
729
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.