我有点网络的asp.net网页,我用asp.net登录控制登录页面,当用户登录我的网站并想要进入付款页面并设置数据时,按下付费按钮并回到我的网站,我的网页在重定向到我的网站的主页后自动注销。 我怎样才能避免自动注销?
//my code for payment button:
PaymentGatewayImplService bpService = new PaymentGatewayImplService();
result = bpService.bpPayRequest(terminalId, UserName,
PassWord,
basketID*1000+tryForPayment,
Int64.Parse(GetPrice()),
PayDateTextBox,
PayTimeTextBox, "",
"www.sample.com/inpay.aspx",
0);
//my code in inpay.aspx load form:
RefIdLabel.Text = Request.Params["RefId"];
ResCodeLabel.Text = Request.Params["ResCode"];
SaleOrderIdLabel.Text = Request.Params["SaleOrderId"];
SaleReferenceIdLabel.Text = Request.Params["SaleReferenceId"];
在inpay.aspx我的网站自动退出.....
答案 0 :(得分:1)
听起来我需要在您的网站中实施表单身份验证。这是一个简单的例子:http://msdn.microsoft.com/en-us/library/xdt4thhy%28v=vs.100%29.aspx