Hi,
I am passing paramters to another page using post method not as query string. Here is the code for that:
System.Collections.Specialized.NameValueCollection data = new System.Collections.Specialized.NameValueCollection();
data.Add("myparam1", "1");
data.Add("myparam2", "1");
Bridge.Libraries.Core.Services.HttpHelper.RedirectAndPOST(this.Page, "TargetPage.aspx", data);
public static void RedirectAndPOST(System.Web.UI.Page page, string destinationUrl, NameValueCollection data)
{
//Prepare the Posting form
string strForm = PreparePOSTForm(destinationUrl, data);
//Add a literal control the specified page holding the Post Form, this is to submit the Posting form with the request.
page.Controls.Add(new System.Web.UI.LiteralControl(strForm));
}
I ...
Go to the complete details ...