I am facing strange problem, Whenever I commented second if condition, it works in Production, but fail in development.
And when I dont comments second if condtion of code, it works for development and fail for production.
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lblDocument.Text = "Document :" + this.Request.QueryString["A_No"].ToString();
//if (!frmViewer.Action.Contains("?"))
//{
// frmViewer.Action = String.Format("{0}?A_No={1}&A_Format={2}",
// frmViewer.Action,
//this.Request.QueryString["A_No"].ToString(),
// //this.Request.QueryString["A_Format"].ToString());
// }
}
}
Here is Error message:
CS0117: 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'Action'