Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Buttons within DataView Control
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="TheDude5B, post: 1993047"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Buttons within DataView Control
Top