string a="<a href='http://search.csdn.net/help.htm' target='_blank'>搜索建议</a>";
Response.Write(a);這樣對不對?

解决方案 »

  1.   

    参考一下这段代码,动态读取数据库的内容。在表格栏显示相应的超链接TableRow r=new TableRow();
    TableCell c=new TableCell();

    c.Text="<a href=\"#\" onclick=\" window.open('dispnews.aspx?id="+myreader.GetValue(0)+"','','width=420,height=270')\">"+myreader.GetValue(i).ToString()+"</a>";

    r.Cells.Add(c);

    Table1.Rows.Add(r);
      

  2.   

    Literal1.Text = 你的变量;
    <%#你的变量%>(你的变量是pulic 型)
      

  3.   

    string a="<a href='http://search.csdn.net/help.htm' target='_blank'>搜索建议</a>";
    Response.Write(a);
    这样可以实现。。
     但是最好在要显示的位置加上一个placeHolder  ,然后往里面加东西
      

  4.   

    你可以用label啊,把含有html的代码赋值给label.text
      

  5.   

    Lable1.Text = ="<a href='http://search.csdn.net/help.htm' target='_blank'>搜索建议</a>";
    我就是经常这样用的。
      

  6.   

    对 ,就是用一个label 控件把你要显示的代码设置上面就可以了!
      

  7.   

    string a="<a href='http://search.csdn.net/help.htm' target='_blank'>搜索建议</a>";
    Response.Write(a);
    这样就可以呀