简体   繁体   English

客户端在ASP.Net中的应用程序

[英]Client Sided application in ASP.Net

I am working on asp.Net, and i am required to build a costing calculator having number of fields and comboboxes with a lot of complex formulas, and there would be almost 50 text fields, each have relation to previous fields or like that, in desktop application its quite easy to build it, but in asp, is there anyway to code in asp.net or some asp.net component with which we can do so, i dont wana use javascript, i want to implement it in code behind c#. 我正在研究asp.Net,我需要构建一个具有多个字段和组合框的成本计算器,其中包含许多复杂的公式,并且将有近50个文本字段,每个字段都与之前的字段或类似字段有关,在桌面应用程序很容易构建它,但在asp中,无论如何在asp.net或我们可以做的一些asp.net组件中的代码,我不会使用javascript,我想在c#后面的代码中实现它。 There is a way to implement it using Ajax, but that sheet will not work if network or internet is closed, as server based app does not work if network is off, Let me know what to do. 有一种方法可以使用Ajax实现它,但如果网络或互联网关闭,该表将无法工作,因为如果网络关闭,基于服务器的应用程序不起作用,让我知道该怎么做。 Atif 与Atif

There's this old MSDN article that talks about enhancing client side experience using DLLs downloaded from the server. 这篇旧的MSDN文章讨论了如何使用从服务器下载的DLL增强客户端体验。 That might be a marginally useful option to pursue. 这可能是一个有用的选择。

Another option is to use something like Script# and write your code in C# and have a compiler translate it to JavaScript. 另一种选择是使用类似Script#的东西,并用C#编写代码,并让编译器将其转换为JavaScript。 As I understand it you'll be writing code that's mostly calculations and possibly some validation, that kind of stuff should translate from one language to another more easily. 据我所知,你将编写的代码主要是计算和可能的验证,这种东西应该更容易从一种语言翻译成另一种语言。

Last but not least is basically writing a thick client app that will launch from inside a browser. 最后但并非最不重要的是编写一个将从浏览器内部启动的胖客户端应用程序。 Your main option for that is Silverlight . 您的主要选择是Silverlight It will provide for a rich user experience client side and still allow access to the application from a webpage. 它将提供丰富的用户体验客户端,并仍允许从网页访问应用程序。 It can also be made to work in partially connected situations (such as network being down for whatever reason). 它也可以在部分连接的情况下工作(例如网络因任何原因而停机)。

Please code in c# and use Ajax (update panel). 请在c#中编码并使用Ajax(更新面板)。 Don't bother about network off or on. 不要打扰网络关闭或打开。 You can deploy on server and it work with internet. 您可以在服务器上部署,它可以与Internet一起使用。

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

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