如何在此代码中添加注释 [英] How to add comments in this code

查看:54
本文介绍了如何在此代码中添加注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"<a href=''articles_comments.aspx?article_id=''+article_id>" + entityPriceCount.ToString() + ""



我想显示2条评论的结果.

在这里,我要如何在此代码中添加注释.

请帮我.我尝试过,但是我做不到.

在此先感谢

[edit]已排序的块和标签-OriginalGriff [/edit]

我实际上尝试这样做:
< a href =''articles_comments.aspx?article_id =''+ article_id>" + entityPriceCount.ToString()+注释"
这是这段代码中的注释",我在其中讲述



I want to display result like 2 comments.

Here i want how to add comments in this code.

Please help me. I try but i can''t do that.

Thanks in advance

[edit]Blocks and tags sorted - OriginalGriff[/edit]

I actually try to do like this:
"<a href=''articles_comments.aspx?article_id=''+article_id>" + entityPriceCount.ToString() + comments ""
This is the "comments" in this code where i telling about

推荐答案

注释语法
<%-- Comments --%>


您永远不想将注释添加到ASPX,因为它们将提供给您的客户.无论如何,您想在此代码中添加什么注释?而且,用引号引起来,为什么您要在这种方式后面的代码中建立锚点呢?
You never want to add comments to your ASPX, as they will be served to your clients. What possible comment would you want to add to this code in any case ? And, it''s in quotes, why would you build an anchor in your code behind this way ?


很容易,这篇文章实际上是最贴切的.我参与您的结论,并将最终热切期待您的更新.在您撰写本文时,仅凭您的清晰度就足以表示感谢. http://www.myrecommendeddietary.info/ [ ^ ]
Easily, the post is actually the sweetest with this worthwhile matter. I participate in your conclusions and will eventually eagerly look ahead to your nearing updates. Saying thanks will not just be sufficient, to your exceptional clarity as part of your writing. http://www.myrecommendeddietary.info/[^]


这篇关于如何在此代码中添加注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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