calling an ascx page method using jquery

后端 未结 8 1371
天涯浪人
天涯浪人 2020-12-01 14:16

I know that I can call a page method with jquery using the following syntax

$.ajax({
  type: \"POST\",
  url: \"Default.aspx/GetDate\",
  data: \"{}\",
  con         


        
8条回答
  •  遥遥无期
    2020-12-01 14:36

    I don't think it will be possible, as user controls aren't meant to be accessible externally (outside of a page). I suggest just using a script service (a web service).

提交回复
热议问题