ASP.NET中具有name属性的HTML锚点

raf*_*fek 0 html asp.net anchor

我想在我的asp.net论坛中为每个帖子制作锚点.每个论坛的帖子都使用转发器控件呈现.我怎样才能<a name="anchor_name"></a>在asp.net中渲染?

Tra*_*ins 6

<a name='<%# Eval("PostId") %>' />
Run Code Online (Sandbox Code Playgroud)

其中PostId是您希望在锚点中显示的属性的名称.