Author: mrwelcam | Posted on: 10/5/2009 12:42:19 AM | Views : 243

 Hi Im trying to redirect with post data. The following code raises the error : Microsoft JScript runtime error: Object doesn't support this property or method
public void postWithRedirect() { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Write("<html><head></head>"); HttpContext.Current.Response.Write(string.Format("<body onload=\"document.forms[0].Submit()\">", _formName)); HttpContext.Current.Response.Write(string.Format("<form id=\"form1\" name=\"{0}\" method=\"{1}\" action=\"{2}\" />", _formName, _requestMethod.ToLower(), _url)); for (int i = 0; i < _postParameters.Keys.Count; i++) { System.Web.HttpContext.Current.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" valu ...

Go to the complete details ...