c# - Calling a Button's method with a CommandArgument -
I'm not sure the title is best understood.
I am trying to call a method that is usually accessible by direct clicks from the front page. Although in a special example I need to call this method once, but in order to use this method, to use the command commandarm, I need to get command command of this fake button call.
Usually call such a method
Make_Profile (this, new EventArgs ()); or
Make_Profile (empty, empty); I have tried to call a method like this:
address page (this, new eventArgS ("CommandArgument", "1"); But I do not think I understand this code well.
In the method I call:
argument = ((Button) sender) command command; if (string.IsNullOrWhiteSpace (argument)) {numba = 0;} else {numba = Convert.ToInt32 (logic);} hopefully That you can see what I'm trying to get from the button. <
Make_Profile (empty, empty); The job is OK. < / Div>
Comments
Post a Comment