I have several html linkbuttons for each applicant for a loan process.
The PRIMARY applicant html linkbuttons follow a naming convention
of "PName", "PAddress" etc where "P" is the prefix.
The JOINT applicant follows the same naming convention except that the
link buttons are prefixed with a "J".
I'd like to write a generic routine that will fill in the appropriate
linkbutton.text simply by passing the Prefix as a parameter.
Is there anyway I can set a generic pointer of some sort to point to the
appropriate link button??
I'm hoping to do something along the lines of:
private void SetLinkButton(string Prefix) {
Prefix+"Name".text = "this is my text";
}
Thanks...Jim