Solved

How to get CommandArgument from ViewState?

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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 …

770 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