Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ASP按钮未显示在iframe上_C#_Asp.net_Iframe_Aspbutton - Fatal编程技术网

C# ASP按钮未显示在iframe上

C# ASP按钮未显示在iframe上,c#,asp.net,iframe,aspbutton,C#,Asp.net,Iframe,Aspbutton,我正在开发一个asp.net web应用程序。 我使用了Iframe控件。每当我向它添加一个按钮时。它不会显示在Iframe上。 请看下面的代码 <iframe style="border: none" name="myIframe" id="myIframe" runat="server" height="100%" width="100%" > <asp:Button runat="server" Width="20"

我正在开发一个asp.net web应用程序。 我使用了Iframe控件。每当我向它添加一个按钮时。它不会显示在Iframe上。 请看下面的代码

<iframe style="border: none" name="myIframe" id="myIframe" runat="server" height="100%" width="100%" >
                           <asp:Button runat="server" Width="20" Height="20" />
                        </iframe>


使用iframe有什么特殊原因吗?改用div或面板?

我想更新网页的一部分,而不是整个页面。请使用更新面板或jquery