Solved

How to get CommandArgument from ViewState?

Posted on 2010-08-21
4
796 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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