duvidas ASP.net! Ajuda are welcome!

flaviorodrigues

Power Member
Boas, eu estou havituado a usar php, por exemplo,

tenho o index.php com este conteudo:
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<? include'config.php' ?>
<body>
<table width="841" border="1">
  <tr>
    <? titulo(); ?>
  </tr>
  
  <tr>
    <td width="113"><? menu(); ?> &nbsp;</td>
    <td width="712" colspan="2">&nbsp;</td>
  </tr>
</table>
</body>
</html>
E depois outro file o tal config.php com o seguinte codigo:
PHP:
<? function menu(){
?><table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td><a href="home.php">Home</a></td>
</tr>
<tr>
  <td><a href="aulas.php">Aulas</a></td>
</tr>
<tr>
  <td><a href="espe.php">Espe</a></td>
</tr>
<tr>
  <td><a href="isesp.php">ISESP</a></td>
</tr>
</table>
<?}?>
<? function titulo(){?>
<td colspan="3"><div align="center">ESPE - Sistemas Informaticos</div></td>
<?}?>
<? function conteudo(){
?> coiso
<?}?>
Queria saber, como faço algo assim em asp.net

Tou a iniciar me mesmo nesta linguagem, tendo conhecimentos em vb, e tou na parte do design do website e queria saber isto, pois o meu site vai ser totalmente editavel pelo admin do genero:
Ate o logo que aparece em todas as paginas vai poder ser editado num file, eu em php fazia uma função, mas em asp.net, como faço?
obrigado
 
Back
Topo