Currently, I have this all laid out:
public static string Encrypt<T>(string anything)
{
//Stuff can go here
}
When I press a button, I want to be able to run ALL the code in Encrypt. Is it possible to do this, and if it is, how can I?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Suppose your aspx button is
Your server side event will be like this:
If the Encrypt method is in the same class then you can directly write the method name like:
You don’t need the .
So your Encrypt method will be like:
Hope u get your answer from this…