C# Web Applications

tyty123

Limp Gawd
2FA
Joined
Nov 4, 2010
Messages
185
Can someone please link/explain to me how I would make my c# application usable through a web page in a browser or give a brief tutorial / link to apis ? perferably in html5?


kk thanks
 
HI,
What you need is Visual Studio Installed.
To start, create a new Web application project.
In Visual Studio, from the File menu, click New Project,
displays the New Project dialog box.

Under Project types, open the Visual C# node,
and then under Visual Studio installed templates,
click ASP.NET Web Application:

Name the project and specify a location.
When you click OK, Visual Studio creates
and opens a new Web project with a single
page named Default.aspx, an AssemblyInfo.cs
file , and a Web.config file:

Open the Default.aspx file.
Drag and drop button,Text box or
any other controls and design the page
as you like.

Let you want to print current date and time
when you click a button.

Double click the button on the page you have designed.

Enter the following code under the button click event.

Response.Write(DateTime.Now.ToString());

Save and execute.
 
Last edited by a moderator:
The learning curve on Visual Studio 2010 is pretty steep so I would learn the 2008 version first

LOL.... Without debating your learning curve, that statement is just face-palm worthy.
 
LOL.... Without debating your learning curve, that statement is just face-palm worthy.

this

You know what

I just give up in here trying to help

How was that helping? What learning curve does visual studio 2010 have that 2008 doesn't? To the newbie, it's the exact same application.
 
Last edited by a moderator:
@JSpyder...

Your first post had many comments that were gross, confusing generalities. I simply picked the most flagrant one. And honestly, I do agree that I pushed a bit too far. A nicer response would've been "why" than "lol". I also expected a developer of over 30 years to better qualify their statements.

Since editing your first post, you've made some additional confusing statements in the second post. So if you happen to come back to this forum once more then please clarify statements like "the new MS stuff", "steeper learning curve than 2008", and the other similar comments. Your last post above, as well as your earlier post (ie: the original, pre-edited version), left many things unclear. You said you have your opinion -- just share it, along with why.
 
I found that VS 2010 had more of the new "stuff" that seemed to appear in all MS products.

The "New stuff" was confusing unless you had used it for years and if you noticed he was directed to a primitive CGI interface to begin with.
Just as a general observation; New stuff is only confusing if you know about old stuff.
To someone who knows nothing new stuff isn't confusing because they have nothing to compare it to, instead to them new stuff becomes intuitive because 2010 is the better product.

Suggesting for someone to work with a version that was released in 2007 when the current date is 2011 is simply bad advice.

@OP, here's all you need/want to know about C# and how to get started: http://msdn.microsoft.com/en-us/vcsharp/aa336766
 
wow this topic blew a little out of proportion.. i already got what i needed... and i use 2005.. i don't have a copy of 2008 or 2010...
 
Well, you ask 5 developers, you get 7 answers. ;)
Just as a general observation; New stuff is only confusing if you know about old stuff.
To someone who knows nothing new stuff isn't confusing because they have nothing to compare it to, instead to them new stuff becomes intuitive because 2010 is the better product.

Suggesting for someone to work with a version that was released in 2007 when the current date is 2011 is simply bad advice.

@OP, here's all you need/want to know about C# and how to get started: http://msdn.microsoft.com/en-us/vcsharp/aa336766
This: I started with procedural languages, then OOP come along (I thought creating all these objects was a little pointless) with datasets. Now It's entity framework, Linq, MVC/ Silverlight and a couple of years there will be more massive changes. If it is too much to spend time trying new technologies, get out of programming. Although you could find a job supporting/ maintaining 20+ year old code that should of been thrown out years ago..

You would be crazy not to go MVC3 with visual studio 2010 (even the web edition) if starting now. It also has some excellent video tutorials to get you started.
 
Well, you ask 5 developers, you get 7 answers. ;)

This: I started with procedural languages, then OOP come along (I thought creating all these objects was a little pointless) with datasets. Now It's entity framework, Linq, MVC/ Silverlight and a couple of years there will be more massive changes. If it is too much to spend time trying new technologies, get out of programming. Although you could find a job supporting/ maintaining 20+ year old code that should of been thrown out years ago..

You would be crazy not to go MVC3 with visual studio 2010 (even the web edition) if starting now. It also has some excellent video tutorials to get you started.

Great post Wiseguy2001. Thanks for the heads up about MVC3, I just installed it and am watching those videos.
 
Back
Top