[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 815
  • 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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