I have a site which I need to modify and add phone numbers based on what branch is being displayed. I have NO clue what-so-ever on how to do this.
I have a .aspx file which is using another file as its code behind. My first question is: If I want to add "if statements" into this code, do I add them in the .aspx file or the code behind (aspx.vb) file? Next question is: A statement like
"<asp:Literal runat="server" ID="ltlBranch" /> Employees"
is using ltlBranch to place the branch name in front of Employees. Can I use ltlBranch as my lookup variable? In other words, is this valid coding for asp?
If ltlBranch="MainStreet"
show the rest of my code
Else
this code
EndIf
Or is there a different approach that would be better and more normalized? Should I be creating a sub-routine within the codebehind form and then calling that routine? I am clueless on how to go about this, and am just trying to get a starting point so I can look up more info on it. If I am off on the wrong track, please let me know.
Thank you for any help in making this easier for me...