By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

how to create website in vb.net (new at vb .net)

P: 10
I am new at vb .net and I want to know how to make website in it? like connect two papes or using header in different file and linking it together etc..

for some reason when I create a page than vb studio automatic adds a form tag and creates two files(aspx and aspx.vb files). I am not sure if I need aspx.vb when making websites.

header.aspx
since menu is always same in all pages. it would be good idea to put the code in different file and include when you need it.



Expand|Select|Wrap|Line Numbers
  1. <html> 
  2.     <body> 
  3.     <form...> 
  4.         <div> 
  5.             <% simple menu. %> 
  6.             <a href="page1.aspx"> home </a> 
  7.             <a href="page2.aspx"> page 2 </a> 
  8.         </div> 
  9.     </form> 
  10.  </body> 
  11. </html>
  12.  

page1.aspx
this will be main or home page

Expand|Select|Wrap|Line Numbers
  1. <html> 
  2.     <body> 
  3.         <form...> 
  4.             <div> 
  5.             <!-- header fiel --> 
  6.             <%          
  7.                   Response.WriteFile ("header.aspx")
  8.                %> 
  9.             </div> 
  10.         </form> 
  11.    </body> 
  12. </html>
  13.  

page2.aspx
Expand|Select|Wrap|Line Numbers
  1. <html> 
  2.     <body> 
  3.         <form...> 
  4.             <div> 
  5.             <!-- header fiel --> 
  6.             <%          
  7.                   Response.WriteFile ("header.aspx")
  8.                %> 
  9.             </div> 
  10.         </form> 
  11.    </body> 
  12. </html>
  13.  
Jul 6 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.