duanfan1869 2011-11-30 22:28
浏览 65
已采纳

使用C#.NET进行Web开发的好处[关闭]

my question might sound stupid to some of you, but I need some good answers here. I have experience working with PHP and Ruby on Rails. I know what are the benefits in using both technologies, (MVC, performance and etc). Now I am working on a project written in C#. Based on what I have seen so far, the browser code is a mixture of HTML, inline and external CSS, and I some C# methods to generate HTML content. Everything is so messy, I have been working on it for 3days and I am still confused.From that C# implementation, there is not well structured MVC. My impression is that C# does not seem like a good choice when it comes to web app (for me). Maybe the code I am working with is written in a wrong way. My question is, is the messy HTML/CSS and the lack of MVC implementation something common when it comes to C# ? What are the benefits of C# over PHP, Java and ROR for developing small and big web applications.

Exaple from the code I work with:

</td>
    <td align="left">
       <asp:TextBox ID="txt_to" runat="server" Enabled="true" 
                    TextAlignment="Center" MaxLength="7000"
                    AcceptsReturn="True"  ToolTip="Add ; after a recepient to add another recepient" 
                    CssClass="txt_Message1" TextMode="MultiLine"></asp:TextBox>
       <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" 
                    TargetControlID="txt_to" MinimumPrefixLength="2" 
                    CompletionInterval="10" CompletionSetCount="3"
                    EnableCaching="true" FirstRowSelected="true" 
                    UseContextKey="True" ServiceMethod="GetCompletionList"
                    DelimiterCharacters=";, :"  howOnlyCurrentWordInCompletionListItem="true" /> 

       <asp:Label ID="lbl_ToError" runat="server" CssClass="Error"></asp:Label>
    </td>

This look too much complicated for me, at the end of the day it is just a text field :) And another thing, most of my global Css gets overloaded by the inline values ( I believe they are generated using some sort of a generator or VS tool).

Please, dont get offended, I have no experience with C# .NET this is my first contact and my impression is "Never ever". I hope it is the code I am working with, not the C#. Give me explanation why I should use C#? So far it has been a pain for me :)

  • 写回答

1条回答

  • dsxrq28228 2011-11-30 22:31
    关注

    Maybe you should try ASP.NET MVC. Seems like it would fit your requirements more :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配