QueryString
-
Hi Please find which Cause the problem Response.Redirect("PrintQuote.aspx?Print=" + grdVwAgentQuote.SelectedRow.Cells[7].Text+" & Quote="+TextBox1.Text); dataPrinting = adapterprinting.GetData(int.Parse(Request.QueryString["Print"].ToString()), int.Parse(Request.QueryString["Quote"].ToString())); When i just call one querystring. Its Working Fine. But if i call both the QueryString Then the Null Exception is showing on the Print. But if i pass only Print as queryString its working Fine.Please advice to solve the issue.
Regards, A Jabeer Ali
-
Hi Please find which Cause the problem Response.Redirect("PrintQuote.aspx?Print=" + grdVwAgentQuote.SelectedRow.Cells[7].Text+" & Quote="+TextBox1.Text); dataPrinting = adapterprinting.GetData(int.Parse(Request.QueryString["Print"].ToString()), int.Parse(Request.QueryString["Quote"].ToString())); When i just call one querystring. Its Working Fine. But if i call both the QueryString Then the Null Exception is showing on the Print. But if i pass only Print as queryString its working Fine.Please advice to solve the issue.
Regards, A Jabeer Ali
When you try to read the value using the name "Quote", you will not find it as the name is " Quote". Remove the extra spaces around &. Also, you should use Server.UrlEncode to encode the values before you put them in the query string.
--- single minded; short sighted; long gone;
-
When you try to read the value using the name "Quote", you will not find it as the name is " Quote". Remove the extra spaces around &. Also, you should use Server.UrlEncode to encode the values before you put them in the query string.
--- single minded; short sighted; long gone;
-
Can you send some Sample Code for Server.URLEncode. Because it gives error to me
Regards, A Jabeer Ali