PC Review


Reply
Thread Tools Rate Thread

Buttons within DataView Control

 
 
TheDude5B
Guest
Posts: n/a
 
      7th Feb 2007
Hi,

I have a dataview control which lists items which have been allocated
to a certain web page. These Items can have a viewing Order, so if it
is set to 1 then it will be first in the list.

I have two buttons within the DataView control which Moves the item up
or Down the list depending on which is clicked.

I am using an ObjectDataSource to control the DataView so I was
thinking that I could use an UpdateCommand for this job, but the
problem I have is that how does my update control know weather to move
the item up or down the order list ?

So if I have the two buttons both set to CommandName="Update", then my
UpdateMethod="ChangeOrder", how can I pass in an argument which is
either "Up" or Down" dependning on which button is clicked?

I thought about the CommandArgument="Up" or CommandArgument="Down",
but I am not sure how to access this in the UpdateMethod="ChangeOrder"

can you help?

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form buttons and Control Command Buttons ranswrt Microsoft Excel Programming 0 7th Aug 2008 11:36 PM
Change the layout of a DataView (or similar control) - i.e. accrossnot down JB Microsoft C# .NET 1 27th May 2008 04:32 PM
DataView from a DataSource control ElmoWatson Microsoft ASP .NET 0 9th Feb 2007 03:31 PM
Re: dataview issues in custom control William Ryan eMVP Microsoft ADO .NET 0 7th Jul 2004 03:15 PM
Control Buttons vs. Command Buttons Robert Gibson Microsoft Excel Programming 1 13th Oct 2003 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 PM.