将查询字符串从一个Web应用程序传递到另一个Web应用程序 [英] Pass Query string from one Web Application to other

查看:64
本文介绍了将查询字符串从一个Web应用程序传递到另一个Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在使用两个Web应用程序,一个是HUB,另一个是USER.

我希望当用户从HUB的Login.aspx页登录时,其用户名和密码应传递给USER的Login.aspx页,即其他Web应用程序,在querystring中.
因此,如果正确,它将与USER,s数据库中的用户名和密码匹配,它将自动重定向到USER应用程序中的Home.aspx页面.


请朋友帮我.

Dear Friends,

I am working on two web application,,one is HUB and other is USER.

I want that when user will login from HUB''s Login.aspx page,its username and password should be passed to USER''s Login.aspx page i.e. other web application, in querystring .
So it will match the username and password from USER,s database if it is correct it will automatically Redirect to Home.aspx page in USER application.


Please friends help me.

Thanks

推荐答案

重定向到类似 hub/login.aspx?username = name& password = pass 之类的内容,并在集线器中检查它"登录页面.

但是,将凭据作为URL参数传递不是一个好主意.
Redirect to something like hub/login.aspx?username=name&password=pass and check it in hubs'' login page.

However this is not a good idea to pass credentials as URL parameters.


同意 CodingLover .不要传递这样的值.在这里检查这个答案.

将值从一页传递到另一页 [
Agree with CodingLover. Don''t pass the values like that. Here check this answer.

Passing Values from One Page to Another Page[^]


这篇关于将查询字符串从一个Web应用程序传递到另一个Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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