如何在asp.net中的一个网页上显示两个网页 [英] how to disply two webpages on one webpage in asp.net

查看:143
本文介绍了如何在asp.net中的一个网页上显示两个网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net页面.其中有两个单选按钮,一个用于loginbyemailid,另一个用于loginbyusername.我有两个不同的登录页面或登录代码.我必须根据下面的单选按钮选中的值显示登录页面.两个单选按钮.
请帮忙...

i have one asp.net page.In which two radiobuttons are there one for loginbyemailid and other for loginbyusername.i have two diffrent login page or a login code.I have to display the login page according to radiobutton checked value below the two radio button.
please help...
thanx in advance..

推荐答案

您可以在HTML5中使用Iframe代码
休假此链接
http://www.w3schools.com/html5/tag_iframe.asp [ http://www.roseindia.net/tutorial/html/html5/HTML5iFrameTag.html [ ^ ]


希望对您有帮助...
You can use Iframe tag in HTML5
fallow this link
http://www.w3schools.com/html5/tag_iframe.asp[^]

http://www.roseindia.net/tutorial/html/html5/HTML5iFrameTag.html[^]


Hope it may help you...


嗯,这听起来不是有效的设计思想.为什么需要单独的页面来通过电子邮件或用户名登录用户?

只需根据单选按钮选择更改文本框标签前面的文本.然后在您的登录按钮上,根据单选按钮选择(电子邮件/用户名)验证用户.

如果您对电子邮件有额外的验证,则可以使用两个不同的文本框.一个用于电子邮件,另一个用于用户名,然后根据单选按钮的选择使其可见.

这似乎是简单的功能,您确实不需要为此使用多个页面.
Well, this does not sounds effective design idea. Why you need separate pages for user login by Email or UserName?

Just change Text of your label infront of textbox based on radio button selection. Then on your login button validate user based on radio button selection(Email/UserName).

If you have extra validations for Email then you may take two different TextBoxes. One for Email and other for UserName and then make them visible based on radio button selection.

This seems to be simple functionality and you really need not to have multiple pages for this.


<body>
    <form id="form1"  runat="server">
    <div>
   
<iframe style="width: 100%; height: 200px;" src="Default2.aspx"></iframe>
<iframe style="width: 100%; height: 200px;" src="Default.aspx"></iframe>
<iframe style="width: 100%; height: 200px;" src="http://www.codingforums.com"></iframe>
<iframe style="width: 100%; height: 200px;" src="http://www.disney.com"></iframe>

    
    </div>
    </form>
</body>


这个例子.


This the example.


这篇关于如何在asp.net中的一个网页上显示两个网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆