Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    datatype should be dataType: "json" Commented Sep 1, 2015 at 10:49
  • 1
    Change Console.Writeline to some variable or return type, Check My Edit ^ Commented Sep 1, 2015 at 10:52
  • 1
    When i change the dataType to json. Then error function of ajax call. Commented Sep 1, 2015 at 10:55
  • 1
    add ClientIDMode="Static" to Button if you are usin .net 4.0 or use <%=Button.ClientID%> when you call in jquery or javascript. Commented Sep 1, 2015 at 11:18
  • 1
    @FawadWarraich you can mark it as answer if it helped Commented Sep 1, 2015 at 15:57