Hi,
I'm trying to do something that should seem very simple. I want to include a function in a master page that I can call in all of it's child pages. Something like this:
master page code:
void helloWorld()
{ response.write("Hello World");}
child page code:
<% page.master.helloWord() %>
I am fairly new to asp.net and have very little programming experience with c#, so pardon me if this is a dumb question. If you know the answer, PLEASE respond with the actual code to do the above.
Thanks in advance!
I'm trying to do something that should seem very simple. I want to include a function in a master page that I can call in all of it's child pages. Something like this:
master page code:
void helloWorld()
{ response.write("Hello World");}
child page code:
<% page.master.helloWord() %>
I am fairly new to asp.net and have very little programming experience with c#, so pardon me if this is a dumb question. If you know the answer, PLEASE respond with the actual code to do the above.
Thanks in advance!