DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 26 Jul 2007 13:28:03 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webcontrols        back       

Thread Index
  1    newGuy
          2    newGuy


Simple DataList Update on PostBack   
Hi,

I have a DataList that displays a column of text boxes that the user can 
edit.  Instead of having a button with a CommandName within the 
<asp:DataList> to submit the page, I have just a regular HTML submit button 
elsewhere on the page.

How can I call the DataList's UpdateCommand event on postback in the code 
behind when just a regular submit button was clicked?

Thanks,

newGuy
Date:Thu, 26 Jul 2007 13:28:03 -0700   Author:  

RE: Simple DataList Update on PostBack   
For anyone having this same problem, I came up with an easy 
workaround--albeit not as elegant as if it were using the built-in members.

I just added code similar to this in the Page_Load event:

if IsPostBack
 methodToIterateThroughDataList()




"newGuy" wrote:


> Hi,
> 
> I have a DataList that displays a column of text boxes that the user can 
> edit.  Instead of having a button with a CommandName within the 
> <asp:DataList> to submit the page, I have just a regular HTML submit button 
> elsewhere on the page.
> 
> How can I call the DataList's UpdateCommand event on postback in the code 
> behind when just a regular submit button was clicked?
> 
> Thanks,
> 
> newGuy
Date:Mon, 30 Jul 2007 07:44:02 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us