calling an ascx page method using jquery

后端 未结 8 1395
天涯浪人
天涯浪人 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:38

    What about creating the method on the .aspx page that does what it needs to with the information from the control? I know people go back and fourth on what controls are supposed to contain or not contain, but if the control only contains properties and objects, I would think having the function in the .aspx page could work for you. Obviously there would be many trade-offs.

提交回复
热议问题