JSON (JavaScript Object Notation) is a lightweight data-interchange
format. JSON is a text format that is completely
language independent but uses conventions that are familiar to programmers of
the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,
and many others (http://www.json.org/)
How to get those data and deserialize them into our object data ?
You can check out the following C# code :
Please note that Track object properties should be configured as same as the JSON return value. As such, before create the object data, you must generate c# classes from JSON. You may use jsonTocsharp by simply entering the JSON, and klik generate, you will get a bunch properties that should be put within your class/object.
For further knowledge about JSON, you can visit Mastering JSON
May it helps,
Thanks
Web Application - ASP.Net - C# - NHibernate - MSSQL Server - MySQL
Google Maps API - Example
Simple example how to put map into our website :
For complete tutorial and reference, please read Google Map Javascript API Tutorial and Google Map Javascript API Reference
May it helps,
Thanks
- Call google maps javascript API :
- Put this javascript :
- Type this in your body tag :
- Type this under head tag, to set css style (optional) :
For complete tutorial and reference, please read Google Map Javascript API Tutorial and Google Map Javascript API Reference
May it helps,
Thanks
Solr File Indexing
Solr also support for file indexing, such as content, author, and any meta data inside a file.
I will show you how to use this, with assume that the solrconfig.xml is already set up as my environment.
Check out below :
For complete reference, please read Solr Wiki - ExtractingRequestHandler
My it helps,
Thanks
I will show you how to use this, with assume that the solrconfig.xml is already set up as my environment.
Check out below :
- Call URL address directly from browser (or using curl command), as follow :
- OR, you can call via WebClient object in C# on ASP.Net : The content is not indexed, but recorded, just to minimize the memory use.
For complete reference, please read Solr Wiki - ExtractingRequestHandler
My it helps,
Thanks
Faceted Search using Solr
How to use Solr faceted search :
May it helps,
Thanks
- To understand and how to install, please read Apache Solr
- To using within .net, please read and download Solr client for .NET
- This is how solr first initialization. Put this code inside application_start within your Global.asax file
- This is how solr and solr.net related with your class data object
- To add to index, code shown as below
- To retrieve the data, based on faceted search by user
- Language : C# on ASP.Net
- Library needed : Solrnet, Castle Windsor, and WindsorAdapter
May it helps,
Thanks
NHibernate – How to use
An example, how to use Nhibernate :
May it helps, Thanks
- Add code below to your web.config file
- Create session manager class as below
- Call them with this code
- And use them as needed, to save or delete
- Language : C# on ASP.Net
- Database : MySQL
- Library needed : Nhibernate, Castle Windsor, WindsorAdapter
May it helps, Thanks
Subscribe to:
Posts (Atom)