var x =
var y = x.spilt(',');
"81,82,823,84,84" ;var y = x.spilt(',');
<compilation debug="true" targetFramework="4.5.1" />
first time above code in webconfig file.<compilation debug="true" targetFramework="4.5.1" optimizeCompilations="true" />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
[InvalidOperationException: Request format is unrecognized for URL
unexpectedly ending in '/JsonCityList'.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
(Type type, HttpContext context, HttpRequest request,
HttpResponse response)+713315
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler
(HttpContext context, String verb, String url, String filePath) +308
System.Web.Script.Services.ScriptHandlerFactory.GetHandler
(HttpContext context, String requestType, String url,
String pathTranslated) +89
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication
.IExecutionStep.Execute() +516
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +288
|
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>