CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Which bindings is the best for ASP.Net website talk to civicrm?
Pages: [1]

Author Topic: Which bindings is the best for ASP.Net website talk to civicrm?  (Read 829 times)

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Which bindings is the best for ASP.Net website talk to civicrm?
January 03, 2013, 03:57:32 pm
Hi,

  I have an ASP.Net website.  Which binding (REST, Ajax, Smarty and Drush) is the best if I want to setup communication between my ASP.net website and civicrm?

Thanks,

R

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Which bindings is the best for ASP.Net website talk to civicrm?
January 04, 2013, 01:31:54 am
If they are on different sites, use the rest interface.

I would suggest you to develop a simple asp wrapper that hide the http calls and present "normal" methods/functions

check
https://npmjs.org/package/civicrm for a node.js example
or
api/class.api.php for an example in php (slightly more complex, it handles local and remote)

Please share the result so others can benefit from it

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Which bindings is the best for ASP.Net website talk to civicrm?
January 18, 2013, 10:55:05 am
Finally,  I have created a c# ascx.  My asp application can post request to that control.  Then that control use REST API to perform operation to civicrm.

Hope this can help people on the same boat as me  ;D

R

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Which bindings is the best for ASP.Net website talk to civicrm?
January 18, 2013, 06:02:52 pm
Hi, glad you sorted it out

I'm not familiar with c#, but is ascx some kind of module that can be re-used? Would be cool if you could publish the code somewhere.

Even if it's specific to your application, might provide a good example and guidelines for other c# projects.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Which bindings is the best for ASP.Net website talk to civicrm?

This forum was archived on 2017-11-26.