T
TheDude5B
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
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