I’ve been asked to make a website with VB.NET server-side code, and I cannot use ASP.NET or any client-side scripting. The pages need to interact with a Microsoft SQL Server database hosted on a Windows 2003 server (which has IIS and the .NET framework installed). I’ve been googling for examples, but all the ones I find seem to be about ASP.
I have some basic PHP experience, and can program in VB.NET, but I’ve never had to do anything like this before. Can anyone give me a reference or basic example that I could play with that will help me connect an html webpage to the SQL database with VB.NET as my server-side code, without using ASP.NET?
Edit and clarification: I know ASP.NET is server-side – what I have been specifically banned from using is any tag starting <asp: or containing runat=server. If there are other features of ASP.NET that I can/need to use, then that’s fine.
You can at least use IIS, and the .Net tools within IIS, right? You’re not completely re-implementing a web server?
Just make a handler (*.ashx), and use
Response.Write(),<%=, and<%:for everything.You should also look into whether you can use ASP.Net MVC (it doesn’t need server controls at all). Otherwise you’re essentially back in the dark days of classic asp.