How can we integrate jQuery autocomplete using asp.net, webservice and sql database?

前端 未结 2 510
名媛妹妹
名媛妹妹 2021-01-07 08:41

I am trying to implement the code given for \"jQuery Autocomplete and ASP.NET\", but unable to integrate it because you are using subsonic to query database.

So can

2条回答
  •  自闭症患者
    2021-01-07 09:29

    I am not fluent in asp.net but fundamentally like most web coding questions this involves breaking your problem into smaller ones.

    From an architectural perspective your components might include the following...

    • a service layer that potentially uses your db etc to answer or produce a result for your query.
    • a web component or service entry point that uses the completed service mentioned above to return the data in a format the browesrr can easily understand - eg JSON.
    • some javascript using jquery which invokes the end point define in the immediate point above.
    • write unit tests for all the above components - don't forget to test failure cases because as we all know software sometimes fails ...

提交回复
热议问题