我如何...运行asp.net网站? [英] How do I...run a asp.net website?

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

问题描述

您好先生,我已经在vs2012中编写了一个示例代码,在代码(<>)的帮助下创建了一个标签,并在工具箱的帮助下拖动了一个按钮。

然后我运行网站。我有一个浏览器窗口,它只有一个按钮,它没有显示标签。实际上我要说的是我的设计部分(在工具箱的帮助下)正在执行完美,代码部分..它没有显示任何内容(空)

我还没有安装iis.May i知道问题出在哪里吗?

Hello sir, I have written a sample code in vs2012 like, a label crated with the help of code(<>) and a Button drag with the help of Toolbox.
then i run the website. I got a browser window and it's have only a button,, it is not displaying label. Actually what I am going to say is My Design part(with help of toolbox) is executing Perfectly,where the code part.. it shows nothing(empty)
I did not install iis yet.May i know where is the problem Exactly??

推荐答案

每次安装VS都会安装一个版本的IIS,以便您可以在不影响生产代码的情况下测试网站。

当你从VS内部运行网站时,就是被激活的IIS并将页面处理到你的浏览器。



你最有可能的原因看不到标签是因为你还没有放任何文字!

编辑你的页面HTML,然后在标签前加上BEFORE,然后在AFTER之后放置 - 然后运行你的页面再次。几乎可以肯定,你会看到BEFOREAFTER,它们之间没有任何东西。



解决方案:在标签上放一些文字。 :笑:
A version of IIS is installed with every installation of VS so that you can test websites without affecting production code.
When you run the website from within VS, that is the IIS that gets activated and processes the pages to your browser.

The most likely reason you can't see the label is because you haven't put any text in it!
Edit your page HTML, and put "BEFORE" before the label and "AFTER" after it - then run your page again. Almost certainly, you will see "BEFOREAFTER" with nothing between them.

Solution: put some text in the label. :laugh:


由于该网站正在运行,并且正在向您显示网页,这意味着IIS正在运行,您无需进行其他调整即可让它起作用。



解决方案(正如OriginalGriff已经提到过一个笑容),就是你有一个Label控件,但是你没有任何文本。所以,要看它要么添加一些文本,要么添加一些CSS样式,以便它显示给你(或者你会觉得它存在于那里;因为它存在)。您编写的HTML始终存在,但它需要一些样式或至少一些内容才能显示,以便用户了解屏幕上是否存在控件。
Since that website is running, and the web page is being displayed to you, that means the IIS is running and there is no other tuning required by you to do in order to make it work.

The solution (as OriginalGriff has already mentioned with a grin), is that you're having a Label control, but you're not having any text in it. So, to see it either add some text to it, or add a few CSS styles to it so that it would be displayed to you (or you would feel it is present there; because it is there). The HTML you write is always present, but it would require some style or atleast some content to display in order for the user to understand that there is a control present on the screen.


这篇关于我如何...运行asp.net网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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