Link to home
Start Free TrialLog in
Avatar of crundle
crundle

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Member_6283346
Member_6283346

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crundle
crundle

ASKER


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
Avatar of crundle

ASKER

I've requested that this question be deleted for the following reason:

never was response to question
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.
Avatar of crundle

ASKER

solution was correct
Avatar of crundle

ASKER

not what I was thinking but, works perfectly