好像见过类似的贴了。
<asp:lable id=lbl runat=server/>Datalist onchange事件里面写代码类下:
lbl.txt="<a href=FriendSubCategoryPosts.aspx?xxxx target=targetURL></a>"

解决方案 »

  1.   

    在Friendlist.aspx <form ...... target="Frienddoc.aspx">中,即可。
      

  2.   

    datalist的itemdatabound事件中加上e.Item.Attributes.Add("ondblclick","parent.main.location = \"dgWhFree.aspx?sbh=" + e.Item.Cells[0].Text + "\"");我用的是datagrid,你可以把e.item.cells[0].text换成datalist的。
    这样的话,在形成的html页面中的语法将是在<tr ondblclick = "parent.main.location = dgwhfree.aspx?sbh=1212">,其中main代表右面的网页框架名称,1212代表你要传递给右面框架的参数,当然,你可以把参数去掉,直接用parent.框架名.location = 目标网页.
    把你原来的语句去掉。然后可以通过双击一行,刷新右面的框架
      

  3.   

    Let's say your right frame has the name of 'frienddoc'. You can either set Target property of each HyperLink control to Frienddoc
    or 
    you need add the following line between the <head></head> tags of friendlist.aspx:<head>
    <!-- other headers go here-->
    <base target="frienddoc">
    </head>
      

  4.   

    <asp:HyperLinkColumn DataNavigateUrlField="bh" DataNavigateUrlFormatString="change.aspx?id={0}" Target="rightFrameName" Text="修改"/>