开发者

Use a c# function in a crm form onload/onclick

开发者 https://www.devze.com 2023-01-12 11:28 出处:网络
I\'ve created a button on a CRM form and now when I开发者_高级运维 click on it I want to send some info to a function that has been written in C# and then do some calculations.

I've created a button on a CRM form and now when I开发者_高级运维 click on it I want to send some info to a function that has been written in C# and then do some calculations.

My question is how to use this function from a CRM onclick event.


The simple answer is; you can't do what you ask. At least, not directly. You need to wrap your C# function in a web service and call the web service from the CRM form/button using JavaScript.

This blog post (an others on this site) could help you get started:

http://nishantrana.wordpress.com/2007/10/18/calling-aspnet-webservice-from-javascript-ajax/

0

精彩评论

暂无评论...
验证码 换一张
取 消