在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>");