Turn your Mobile Apps into m-commerce apps – Learn More!

You're Browsing As A Guest! Register Now...
Become a ASP.NET Expert!

Join 416,731 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 2,907 people online right now.Registration is fast and FREE... Join Now!



ASP.Net Web Application using notepad and csc.exe Keywords: web application, notepad, c# compiler Rate Topic: -----

#1 jorgedbucaran  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 31-July 07


Dream Kudos: 0

Share |

ASP.Net Web Application using notepad and csc.exe

Post icon  Posted 31 July 2007 - 07:04 PM

Hi,

I'm making a short c# tutorial for a class at college. I want to start from scratch, and to do so, I plan to write the first programs in notepad and then use the c# compiler (csc.exe) to build then. I have used notepad and csc.exe (just for the fun) to create console and windows forms programs but I have never tried them for web applications.

I need your help to build a c# web application using notepad and the c# compiler only. The program needs to connect to a database to exercise the ADO.Net libraries.

Regards, Jorge
Was This Post Helpful? 0
  • +
  • -


#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • Icon

Reputation: 202
  • View blog
  • Posts: 13,456
  • Joined: 12-July 02


Dream Kudos: 25

Re: ASP.Net Web Application using notepad and csc.exe

Posted 01 August 2007 - 05:04 AM

Hmmm...the code itself can be written in any editor, but for a web application, you'll need to to use a browser (or simulator) to display it. the C# potion can certainly be written and compiled using the bare bones compiler, but there will be an HTML/CSS component to your web application, yes? If so, a browser will be needed to interpret that portion - you'll also have to ensure that you are running an instance of at least a local server (or simulator) to interpret the code.
Was This Post Helpful? 0
  • +
  • -

#3 jorgedbucaran  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 31-July 07


Dream Kudos: 0

Re: ASP.Net Web Application using notepad and csc.exe

Posted 01 August 2007 - 12:20 PM

Hi,

Thanks for the reply. I have Visual C# 2005 Express and use VS 2005 Professional at work but my intention is building the application using notepad (or other editor like SciTex) and the c# compiler. The idea is to make a simple to intermediate tutorial for a class (actually my girlfriend's class and to fill a bit my blog) and even though I can start directly from Visual Studio I wish to include a special section of do-it-yourself-from-scratch part that features building a web application just using notepad (for the sake of being the windows universal text editor) and the csc.exe (because it is free). One last note is, (1) how can I do the same but appending the code to the .aspx file? (is this inline code? in which case I suspect it means that the code is compiled and ran at the time the page is requested) and (2) how can I use the beloved file based approach instead of setting up the IIS server for the tutorial idea?

Regards, Jorge
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • Icon

Reputation: 1401
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07


Dream Kudos: 12950

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Re: ASP.Net Web Application using notepad and csc.exe

Posted 01 August 2007 - 12:25 PM

View Postjorgedbucaran, on 1 Aug, 2007 - 01:20 PM, said:

Hi,

Thanks for the reply. I have Visual C# 2005 Express and use VS 2005 Professional at work but my intention is building the application using notepad (or other editor like SciTex) and the c# compiler. The idea is to make a simple to intermediate tutorial for a class (actually my girlfriend's class and to fill a bit my blog) and even though I can start directly from Visual Studio I wish to include a special section of do-it-yourself-from-scratch part that features building a web application just using notepad (for the sake of being the windows universal text editor) and the csc.exe (because it is free). One last note is, (1) how can I do the same but appending the code to the .aspx file? (is this inline code? in which case I suspect it means that the code is compiled and ran at the time the page is requested) and (2) how can I use the beloved file based approach instead of setting up the IIS server for the tutorial idea?

Regards, Jorge


You cannot serve up ASP.Net pages without a server environment. Web applications don't work the same was as windows application, you cannot do this without a server environment.
Was This Post Helpful? 0
  • +
  • -

#5 jorgedbucaran  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 31-July 07


Dream Kudos: 0

Re: ASP.Net Web Application using notepad and csc.exe

Posted 09 August 2007 - 08:33 AM

Hello,

Well I found my solution, all I needed was notepad and the Visual Studio WebDev.WebServer.EXE development server and voila.
I have posted an article on this in my blog, since my blog is in spanish the following is the google automatic translation of the post in english.

ASP.Net applications: Notepad and the development server of Visual Studio 2005

P.S: It is translating Visual Studio 2005 to Studio Line of vision. :P
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users