• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 819
  • Last Modified:

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.
0
MonCapitan
Asked:
MonCapitan
  • 2
  • 2
1 Solution
 
thaytu888888Commented:
- 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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now