views:

76

answers:

1

I have a Repeater that generates a list of LinkButtons. Each LinkButton has a distinct CommandArgument value. For various reasons I need to check the CommandArgument value in my Page_Load code (if Page.IsPostBack), i.e. before the OnItemCommand event where it would usually be checked.

I have tried accessing the __eventtarget and __eventargument form values, but the latter is blank and I don't see how to easily determine the CommandArgument from the former, which looks like this:

dnn$ctr498$MyUserControl$lc$rptSections$ctl03$btnSelectSection

(the ctl03 part is different for each row of the Repeater, but how to convert that to my CommandArgument??)

Is there any way to do this? Or is there another repeater-like control that I can use to post a unique value back to the page that I can pick up in Page_Load? Note: I can't reload the page passing a querystring in - it has to be a postback.

A: 

would dearly like to see an answer to this one.

gerard