我如何托管程序驱动的网站? [英] How do I host program-driven website?

查看:99
本文介绍了我如何托管程序驱动的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用IIS在自己的电脑上托管网站。我使用外部IP连接到它。现在我的意思是在网站上创建一个文本框,其输入将被导入我的PC上的C#程序。然后我可以通过网络上的第二个文本框回复用户(C#程序将创建对该网站的响应,该用户可以看到)。



任何人都有这样一个网站和程序的模板,或任何想法如何实现目标?我对.NET和C#有很高的知识,指的是桌面应用程序,但我以前从未对网站做过任何特殊的事情。



感谢您的帮助。

I host a website on my own PC using IIS. I connect to it using external IP. Now my point is to create a textbox on the website, of which the input would be directed into C# programme on my PC. Then I could respond to the user by the 2nd textbox on the web (C# program would create response to the website, which would be seen by that user).

Does anyone have a template of such a website and programme, or any idea how to achieve the goal? I have rather high knowledge of .NET and C# referring to the desktop apps, but I have never done anything special with websites before.

Thanks for any help.

推荐答案

我有一个简单的想法这样做



只需将整个历史存储到一个应用程序变量中并添加一个ajax计时器在页面上,然后使用它刷新文本。



只需添加两个文本框并使用textbox1查看消息和textbox2以提供输入文本



添加按钮发送按钮代码后面只需添加应用程序[text] = Convert.ToString(application [text])+ environment.newline + textbox2.text;



现在只需添加一个ajax计时器并在其代码后面添加



textbox1.text = onvert.ToString(应用程序[text])



现在将所有这些放在更新面板中





现在你完成了简单的群聊。
i have a simple idea to do this

just store entire history into a application variable and add a ajax timer on the page and then refresh the text using that .

just add two textbox and use textbox1 to view messages and textbox2 to give the input text

add a button send on button codebehind just add application["text"] = Convert.ToString(application["text"]) + environment.newline + textbox2.text;

now just add a ajax timer and on its codebehind just add

textbox1.text = onvert.ToString(application["text"])

now place all these inside update pannel


now ur simple group chat is done.


这篇关于我如何托管程序驱动的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆