首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

有个小疑点

2011-12-27 
有个小问题代码如下:CS:ContentPartID ContentPart1 runat server ContentName group_default_gu

有个小问题
代码如下:

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

热点排行