I inserted the gif image in securetrans.aspx page and wrote the payment gateway request code in securetrans.aspx.cs page pageload, here the problem is the loading image is not at all showing up through out the request and the page is empty till the response comes. I cant get it through many searches, hope some one helps me out..
Thanks in advance...
my securetrans.aspx.cs code is
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]]));
}
}
and secruretrans.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" />