473,320 Members | 1,949 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,320 software developers and data experts.

DataList editing

Hi, I'm currently trying to implement editing in a simple
Datalist displaying news on my site. I did everything
the walkthrought of microsoft said to do, but it doesn't
seem to work.

Just for a matter of debugguing, I maintained a list of
what event is called in a session variable because I lost
way to much time on this and wanted to know what was
happening... When I press an Edit or Select button in my
<ItemTemplate>, the event is called and my item goes in
editing selected mode... But then, any button I press in
my <EditItemTemplate>, no event is raised... The
page_load event occurs and then nothing... Even the
itemCommand event is not raised.

My viewstate is enabled, I rebind my datalist after
pressing edit or select, but my update or cancel events
(or any other CommandName I tried) will never trigger any
ItemCommand or any other event at all.

I can post my code if necessary, but it's pretty long.

Thanks!

Etienne
Nov 18 '05 #1
1 1547
Hello etienne,
"Etienne Tremblay" <an*******@discussions.microsoft.com> schrieb im
Newsbeitrag news:63****************************@phx.gbl...
Hi, I'm currently trying to implement editing in a simple
Datalist displaying news on my site. I did everything
the walkthrought of microsoft said to do, but it doesn't
seem to work.

Just for a matter of debugguing, I maintained a list of
what event is called in a session variable because I lost
way to much time on this and wanted to know what was
happening... When I press an Edit or Select button in my
<ItemTemplate>, the event is called and my item goes in
editing selected mode... But then, any button I press in
my <EditItemTemplate>, no event is raised... The
page_load event occurs and then nothing... Even the
itemCommand event is not raised.

My viewstate is enabled, I rebind my datalist after
pressing edit or select, but my update or cancel events
(or any other CommandName I tried) will never trigger any
ItemCommand or any other event at all.

Have you set the ItemCommand to the datalist?

Sometimes, when you change something in the code, the datalist lost the
itemCommand - Event!

mfg simon g.
Nov 18 '05 #2

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

Similar topics

1
by: Mike Malter | last post by:
I take it that the only way to add rows to a DataList control is through DataBind? If not, how do I manually add rows to a DataList control? I have searched everywhere and can't find an example...
0
by: Alex | last post by:
Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Configuration Public Class Main : Inherits Page ...
4
by: tshad | last post by:
I have a DataList that I have set up to allow editing. The edit button does go to the subroutine defined by OnEditCommand. The problem is that it doesn't change the fields to editing fields. The...
2
by: donnet | last post by:
Inside my .aspx file, I have a textbox populated with data from a dataset like this: <asp:TextBox text='<%# DataBinder.Eval(Container.DataItem, "Comment")%>' id="CommentText" runat="server"...
3
by: D. Shane Fowlkes | last post by:
My problem is pretty straight forward and I conceptually understand what I'm doing wrong. I'm trying to populate a DDL that doesn't exist. I;m just not sure how to resolve it. I have a DataList...
3
by: asadikhan | last post by:
Hi, I am trying to use a datalist to edit data in a MySql database as follows. For now I just want to be able to get the changes to be made on the dataset. Here is my code: using System;...
0
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in...
0
by: HP | last post by:
Hi there I have a datalist control with some bound controls in its Item Template and a gridview bound to one of those fields (residing also in Item Template). I've found out that when I click...
1
by: weird0 | last post by:
What is the difference between a DataList control and DataGrid control ? How and where are DataLists used? Can somebody place some good links for its use.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.