【发布时间】:2014-05-16 22:48:38
【问题描述】:
我的服务器端有一个函数。
protected void SelectParticipant(string CompanyId, string EmployeeNumber)
{
//I do some stuff here.
}
我想在客户端从 JavaScript 调用这个函数。我试过搜索它,但我发现的所有建议都是通过 AJAX 调用页面方法。我不想这样,我想引起回发。
function MyJSFunction(companyid, employeenumber)
{
//cause postback and pass the companyid and employee number
//this is where I need help!
}
如何通过我的 JavaScript 进行回发并运行服务器端函数?
【问题讨论】:
标签: c# javascript asp.net webforms