意见有疑问吗? [英] doubt in views?

查看:125
本文介绍了意见有疑问吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在创建一个主页,即. home.aspx,然后在该页面中放置两个图像按钮,一个用于新用户注册,即.注册并登录一个.

我有另一页,即. Login.aspx,在此页面中,我有一个多视图.
在该多视图中,我为登录和新用户Register编写了2个视图.
(View1用于登录,View2用于新用户注册).

我的目标是,如果用户单击home.aspx页面中的Register image按钮,而那个时间View2将显示在login.aspx页面中.

如何解决这个问题.

请提供解决方案

谢谢.

Hi,

I am creating a home page ie. home.aspx and in that page I place two image buttons one for new user Registration ie. Register and one for Login.

I have another page ie. Login.aspx and in this page I have a multiview.
In that multiview I write 2 views for login and new user Register.
(View1 for login and View2 for new user Register).

My aim is if user click Register image button in home.aspx page that time View2 is displayed in login.aspx page.

How to solve this.

Please give a solution

Thanks.

推荐答案

整个设置对我来说似乎很奇怪.您还应该考虑购买一本基本的ASP.NET书籍,以帮助您解决诸如此类的基本问题.答案是,在URL上放置一些您可以阅读的内容,以告诉您的页面显示哪个视图.或者只写两个页面,这可能更有意义.
The whole setup seems bizarre to me. You should also consider buying a basic ASP.NET book to help you with basic things like this. The answer is, put something on the URL that you can read to tell your page which view to show. Or just write two pages, that might make more sense.


而不是更改母版页的内容,只需重定向到登录页面或注册页面即可.

简单的复制和粘贴将使格式保持不变,仅更改图像,页面名称和某些功能.

更轻松,更好的技术.

(错误地更改母版页上的内容的做法,意料之外的后果定律似乎就在那里跳来跳去.)
Rather than changing the content of the masterpage, merely redirect to a Login Page or a Register Page.

Simple copy and paste will keep the formats the same, merely change the image, page name and some of the functionality.

Much easier, and better technique.

(Bad practise to change thing on master page, the laws of unintended consequences seems to jump right in there).


这篇关于意见有疑问吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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