Solved

How to get CommandArgument from ViewState?

Posted on 2010-08-21
4
784 Views
Last Modified: 2013-11-08
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
Comment
Question by:MonCapitan
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
thaytu888888 earned 250 total points
ID: 33490812
- You must set them into ViewState first: ViewState["btnMyLink_CmdArg"] = btnMyLink.CommandArgument
0
 

Author Comment

by:MonCapitan
ID: 33490941
Thanks for your reply.

So, is there any other way to grab the btnMyLink.CommandArgument than without using the statement btnMyLink.CommandArgument?
0
 
LVL 6

Expert Comment

by:thaytu888888
ID: 33492156
- Hmm, i think the answer is NO :(
0
 

Author Comment

by:MonCapitan
ID: 33492849
Cheers.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now