当前位置: 代码迷 >> ASP.NET >> 有个小疑点
  详细解决方案

有个小疑点

热度:8027   发布时间:2013-02-25 00:00:00.0
有个小问题
代码如下:

<CS:ContentPart   ID= "ContentPart1 "   runat= "server "   ContentName= "group_default_guide "   Text= "Joining   or   creating   a   group   is   the   fastest   way   to   meet   people   and   get   a   conversation   going.   Groups   can   cover   any   topic   from   kayaking   to   kissing-it 's   completely   up   to   you.   So   go   ahead,   express   yourself   and   connect   with   women   just   like   you.   You   might   just   find   someone   who   likes   to   kayak   (or   kiss)   as   much   as   you   do!   Need   a   few   pointers?   We 've   put   together   some   helpful   tips   on   creating   and   maintaining   your   own   voice.   Before   getting   started   read   our   &lt;asp:HyperLink   ID=&quot;Guidelines&quot;runat=&quot;server&quot;/&gt;! "> </CS:ContentPart>

其中
&lt;asp:HyperLink   ID=&quot;Guidelines&quot;runat=&quot;server&quot;/&gt;

<asp:HyperLink   ID= "Guidelines "     runat= "server "   />     转写过来的

问题就在这里了,这样的转写是否正确!谢谢




------解决方案--------------------------------------------------------
如果你只是要显示 <asp:.....
正确
如果这是个控件
错误
------解决方案--------------------------------------------------------
明白你的意思,搞这么复杂何必呢
<asp:HyperLink ID= "Guidelines " runat= "server " />
在客户端无非就是 <a href= " "> </a>

直接Text = "...... <a href= ' '> </a> "
  相关解决方案