1.在页面中加入iframe其中关键要设置id,name和height < td align ="left" rowspan ="2" style ="height: 146px; width: 84%;" > < iframe id ="aa" name ="aa" frameborder =0 scrolling =no width ="90%" runat =server height =500px ></ iframe > </ td > 设置要连接的页面url和Target < asp:MenuItem Text ="dfg" Value ="新建项" NavigateUrl ="~/FrameItem/AddUser.aspx" Target ="aa" ></ asp:MenuItem > 2.用cs代码 在页面中加入iframe其中关键要设置id,name和height,在cs文件中写入下面属性的代码. menulItems.Items[ 1 ].Items[ 0 ].TargetFrame = " aa " ; menulItems.Items[ 1 ].Items[ 0 ].TargetUrl = " FrameItem/AddUser.aspx " ;