我有两个页面默认和Regstration。 默认页面在aspx页面中具有以下脚本。现在我想将默认页面的值传递给注册页面。查询字符串不会传递到另一个页面
JAVA SCRIPT Default.aspx中
<script type="text/javascript">
FB.init({ appId:'73055799905339', cookie: true, status: true, xfbml: true });
$(function() {
FB.login(function (responses) {
if (responses.authResponse) {
FB.api('/me', function (response) { // ?fields=events use it and get event detail
id = response.id;
fname = response.first_name;
lastname = response.last_name;
emailid = response.email;
addr = response.location['name'];
$.post('Registration.aspx', { id: id, fname: fname, lname: lastname, email: emailid, location: addr }, function (data) {
});
});
}
}, { scope: 'email,read_stream,publish_stream,user_birthday,user_location,user_photos,offline_access' });
});
REGISTRATION.ASPX.CS
在注册页面的页面加载protected void Page_Load(object sender, EventArgs e)
{
lblemail.Text = Request.QueryString["emailid"];
lblfname.Text = Request.QueryString["fname"];
}
但仍然我不能够取emailid和fname。
请让我知道如何将值从defalul传递到注册页面。
你好迈克尔,我不知道如果我必须使用得到或张贴所有我想要的是从本页发送细节到另一页。你可以提供暗示 – user2621743
将此存储在会话中。 –