Simple Question?

Joined
Nov 28, 2007
Messages
2
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,113
Messages
2,570,696
Members
47,273
Latest member
mikkamuertio

Latest Threads

Top