chronodekar

Senior member
Nov 2, 2008
721
1
0
I'm looking for a way to host a web-page using .NET . Preferably compatible with .NET ver 2.0 so that it'll work with Mono (for Linux).

My company has developed some custom hardware that can be connected to the PC using USB. We've made an application with .NET that will let us access the hardware from the local machine.

Now we're thinking about making a web interface instead. Initially, I was going to search for some web servers made with C#, but then one of my friends told me that I could do the job using ASP.

I need some help. Do you think ASP.NET will work? What is ASP.NET anyway?
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
ASP.Net is a .Net web technology that was originally built for windows, but a compatible version has been created for linux.

The mono web server XSP is a standalone web server written in C#. It should work for you as it is mostly compatible with .Net 2.0 and runs on linux. http://www.mono-project.com/ASP.NET
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Thanks for the link KB. But I've already been there.

For the most part I'm still confused :confused: about what ASP.NET is.

What I'm looking for is a way to make a program in C#, but instead of using a Windows form for the front-end, I want to use a web-page.

Do you think ASP.NET will help me?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Yes. ASP.NET is just the name for a .NET web application. It doesn't matter what language your code behind the pages is, any .NET language will do just fine.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Your best bet then is to get Visual Studio and go to "File", "New project" and choose website. You will then be creating an ASP.Net web application much like a windows form application. You can drag controls onto the form and respond there their events. I bet you can figure it out from there.
 
Oct 27, 2007
17,009
5
0
Originally posted by: chronodekar
Thanks for the link KB. But I've already been there.

For the most part I'm still confused :confused: about what ASP.NET is.

What I'm looking for is a way to make a program in C#, but instead of using a Windows form for the front-end, I want to use a web-page.

Do you think ASP.NET will help me?

That's pretty much the intent of ASP.NET, so yes :) Have a browse around http://asp.net and learn about MVC. Do a search for tutorials on Data Access Layers, Business Logic Layers and Master Pages, that should give you the info you need to replace a Windows Form interface with a web interface. Is it a database driven application?
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Originally posted by: KB
Your best bet then is to get Visual Studio and go to "File", "New project" and choose website. You will then be creating an ASP.Net web application much like a windows form application. You can drag controls onto the form and respond there their events. I bet you can figure it out from there.


I tried that. Not to say it didn't work. But I got hesitant upon seeing the HTML-like code. Not that I hate HTML or anything, in fact, I know the basics of it.

But I was hoping to code in a language similar to C.

Also, I only spent 15 mins on it. I think I'll have to go back and check it out again. I'll post back here on how I'm doing.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
Originally posted by: GodlessAstronomer
Do a search for tutorials on Data Access Layers, Business Logic Layers and Master Pages, that should give you the info you need to replace a Windows Form interface with a web interface.


This I'll do.


No, it's not a database app.
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
An application still needs data to do something, regardless of where it's stored. I don't understand why you think you won't have to look at HTML code when writing a web application... that's part of the job! C# will control the application... but you still need a way to display your results(HTML). It's the same way with any web application, you have to write HTML + language in order to get anything done.
 

chronodekar

Senior member
Nov 2, 2008
721
1
0
It's not that I don't want to look at HTML, don't get me wrong there. Or perhaps, I'm not sure what I want myself...

Let me put it this way,

What I'm looking for is a way to design the layout of a web-page with as little HTML exposure as possible. I hope I'm not asking for the moon here.

What I have in mind is something similar to Frontpage's interface. Just drag and drop stuff in!

 

PhatoseAlpha

Platinum Member
Apr 10, 2005
2,131
21
81
Visual Studio 2003 had a drag and a drop interface for web page design, but the results were always kind of....well, iffy.