PDA

Click to See Complete Forum and Search --> : VB.net to ASP.net


DanTyler69
Dec 9th, 2004, 11:05 AM
Hi
I have written a program in VB.net that basically consists of labels, checkboxes and if statements. I want to put it on my website however and have been told that I am unable to do it using VB.net language. Is there an easy way of converting the VB.net to asp so that i can put it on the website?
Cheers
dan

rdove
Dec 9th, 2004, 11:09 AM
Well..you can't directly transfer you vb.net program to asp.net because of the difference between web forms and windows forms. I would create a new ASP.NET web project and layout the webform with all your controls. To keep it easy I would name the controls the same as you have them now. Then you should be able to pretty much copy and past code over. The code in your Form_load event will be placed in the Page_load event in your asp.net project. Everything else should transfer over almost perfectly.