给LinkButton添加href、target属性

在PageLoad中添加下面语句:

lnk.Attribute.Add("href","main.aspx");
lnk.Attribute.Add(
"target","main.aspx框架名");

有人说下面这个也可以,不过我没试过:
LinkButton的Click事件中添加:FrameB是你要执行main.aspx的框架的名称。 

me.registerstartupscript("Open","<script>top.FrameB.location='Main.aspx';</script>");
原文地址:https://www.cnblogs.com/losesea/p/2503545.html