how to get ItemCommand (arg) from aspx in usercontrol

Have the main page with a list of link buttons, user selects one and want the usercontrol (ascx) portion to load with the selected value.
crundleAsked:
Who is Participating?
 
ivan_vaguninConnect With a Mentor Commented:
Hi! This is a little bit strange scenario, but I guess the values you need should be somewhere in Request.Params collection. Request.Params["__EVENTTARGET"] should contain button id (so you know that proper button was clicked) and Request.Params["__EVENTTARGUMENT"] should contain button command arguments.

http://www.spsamples.com/2011/09/aspnet-get-client-data-at-onload-event.html
0
 
crundleAuthor Commented:

not really, just trying to get the value from the commandarg to the usercontrol and update the ascx page to be displayed with the info
0
 
crundleAuthor Commented:
I've requested that this question be deleted for the following reason:

never was response to question
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
ivan_vaguninCommented:
Hi! Why do you delete this question? Did you try Request.Params["__EVENTTARGUMENT"]? Another solution is to create public property for you user control and set it explicitly in button event handler. Indeed this question has many  solutions, but you have to choose one that is most sutable for your scenario.
0
 
crundleAuthor Commented:
solution was correct
0
 
crundleAuthor Commented:
not what I was thinking but, works perfectly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.