Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using json grid in asp.net and not working below code in class getting page count in vs-2012.
Please give me solution.


if (System.Web.HttpContext.Current.Request.QueryString[page] != null)
{
V.page =Convert.ToInt32(System.Web.HttpContext.Current.Request.QueryString[page]);
}
Posted
Updated 9-Jan-16 20:52pm
v2
Comments
[no name] 10-Jan-16 4:36am    
What is problem exactly: you are not getting any value or any compilation error?

Secondly what is what is URL value when it is hitting your code?
SUBBU237 10-Jan-16 5:56am    
Not getting page value Url http://localhost:6587/WebServices/OP/CountryServices.asmx/fillCountrylist
Nathan Minier 10-Jan-16 13:09pm    
That looks a bit malformed.

You're trying to pull from a query string, and you don't have a query string. Plus the routing switch after the .asmx is an error, unless you have a local JavaScript route handler.
SUBBU237 10-Jan-16 5:56am    
Using webservices
SUBBU237 20-Apr-16 2:49am    
My solution working fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900