我在securetrans.aspx页面中插入了gif图像,并在securetrans.aspx.cs页面页面加载中编写了支付网关请求代码,这里的问题是加载图像根本没有显示在整个请求中并且页面是空的,直到回应来了。搜了好几遍都找不到,希望有大佬帮帮我。。
提前致谢...
我的securetrans.aspx.cs代码是
protected void Page_Load(object sender, EventArgs e)
{
string Url = "https://paymentpagetosendrequest";
string Method = "post";
string FormName = "form1";
NameValueCollection FormFields = new NameValueCollection();
FormFields.Add("account_id", "5880");
FormFields.Add("reference_no", Session["UserID"].ToString());
FormFields.Add("amount", Session["Amount"].ToString());
FormFields.Add("return_url", "http://responsepage");
for (int i = 0; i < FormFields.Keys.Count; i++)
{
Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", FormFields.Keys[i], FormFields[FormFields.Keys[i]]));
}
}
和securetrans.aspx
Loading... Please Wait!!!
You will be Redirected to Secured Transaction Page....
(Please don't press back or refresh button.)
<asp:Image runat="server" ImageUrl="images/Loader.gif" ID="img" AlternateText="Loader" />