How to get CommandArgument from ViewState?

Hi,

Is there a way to get the CommandName and CommandArgument from ViewState?

I know you can do a myLinkButton.CommandArgument, but can it be grabbed from ViewState as well?

Thaks for your time.
MonCapitanAsked:
Who is Participating?
 
thaytu888888Connect With a Mentor Commented:
- You must set them into ViewState first: ViewState["btnMyLink_CmdArg"] = btnMyLink.CommandArgument
0
 
MonCapitanAuthor Commented:
Thanks for your reply.

So, is there any other way to grab the btnMyLink.CommandArgument than without using the statement btnMyLink.CommandArgument?
0
 
thaytu888888Commented:
- Hmm, i think the answer is NO :(
0
 
MonCapitanAuthor Commented:
Cheers.
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.