I have a button click event that I invoke from code-behind:
btnDummy_Click(null, EventArgs.Empty);
To avoid creating session variables to use in the above btnDummy_Click event from where it is called, I would like to just pass those values as parameters. Any suggestions? Would this be an exercise in overriding or overloading? Haven't done any of those. Thanks in advance for any assistance. This is a more complete description of my code:
protected void lsvNewInvite_ItemCommand(object sender, ListViewCommandEventArgs e)
{
...
EmailNewInvitee(firstName, lastName, eMail);
//show success message by programatically "clicking" hidden button
btnDummy_Click(null, EventArgs.Empty);
...
}
protected void btnDummy_Click(object sender, EventArgs e)
{
mpeNewInviteSuccess.Show();
ListView lsv=Helpers.FindChild(Page,"lsvNewInvite") as ListView;
Go to the complete details ...