日期:2014-05-18  浏览次数:20499 次

有个小问题
代码如下:

<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> "