简体   繁体   English

C#程序员想开发第一个网站

[英]C# Programmer would like to develop first website

I am a C# Programmer and I want to develop my first website. 我是C#程序员,我想开发我的第一个网站。

I have a C# Application, methods of which I would like to use on a back end Server. 我有一个C#应用程序,我想在后端服务器上使用它的方法。

Am I correct in thinking I can use a ASP.NET front end and hook it up to a C# back end? 我是否正确认为我可以使用ASP.NET前端并将其连接到C#后端?

The website objective is to select a file on the front end, pass this to the back end, do some processing with the file, then email the results to the user. 网站目标是在前端选择一个文件,将其传递到后端,对文件进行一些处理,然后将结果通过电子邮件发送给用户。

I don't mind what I use for the front end, but am keen to use a C# backend (this will send data to a SQL server database). 我不介意我用于前端,但我很想使用C#后端(这会将数据发送到SQL服务器数据库)。

Is this possible? 这可能吗?

In terms of current knowledge, I have a basic website that I administrate with cPanel, but this will be my first 'proper' web development. 就目前的知识而言,我有一个我用cPanel管理的基本网站,但这将是我的第一个“正确的”网站开发。

Any guidance or suggestions greatly appreciated, Thanks. 任何指导或建议非常感谢,谢谢。

Can I suggest hitting textbooks and web resources. 我可以建议点击教科书和网络资源吗? You've got a lot of reading to do. 你有很多阅读要做。

Start with this: 从这开始:

http://www.asp.net/get-started http://www.asp.net/get-started

You can certainly use ASP.NET with C# code behind. 你当然可以使用带有C#代码的ASP.NET。 My personal preference is ASP.NET web forms. 我个人的偏好是ASP.NET Web表单。 The pluralsight tutorials at http://www.asp.net/web-forms are extremely helpful for starters. http://www.asp.net/web-forms上的复数教程对初学者非常有帮助。

It sounds like you're starting from complete scratch. 听起来你是从完全划伤开始的。

Go download Visual Studio's free version 去下载Visual Studio的免费版本

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express

I would recommend starting with Web Forms if you're starting from the ground floor. 如果你从一楼开始,我建议从Web Forms开始。

From there you can create a project using .aspx pages on the front end that have C# code-behind. 从那里,您可以使用前端具有C#代码隐藏的.aspx页面创建项目。

This is fairly simple. 这很简单。 In this case it could be as simple as a single aspx page (the code behind section is your C# - but it can also be interleaved in the HTML too). 在这种情况下,它可以像单个aspx页面一样简单(后面的代码部分是您的C# - 但它也可以在HTML中交错)。 There are also several variants of this (the display layer) too these days (WPF/Razor/etc) 这些天也有几种变体(显示层)(WPF / Razor / etc)

There are more complex scenarios too: Using Ajax the page does not have to be completely posted, just your file send up and down as required. 还有更复杂的场景:使用Ajax页面不必完全发布,只需要根据需要上下发送文件。 Using a web service (either embedded as a MDX file or a standalone web service - WCF etc). 使用Web服务(嵌入为MDX文件或独立Web服务 - WCF等)。

I suggest you start with basic ASP.Net with code behind and go from there. 我建议你从基本的ASP.Net开始,后面有代码,然后从那里开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM