I have a requirement where user will have an option to search
the data and should match the feature same as google has provided
i.e. whatever char user types in the search box - user will be prompted with matching string below - same as google search text box - you type something and get the options
what control or strategy we should follow in C# ?
Thanks in advance.
What you are looking for is called "autocomplete". The Ajax Control Toolkit has such a control. You can find it here.
what you are trying to achieve is basically AJAX based Google like "suggest" feature, I would recommend having a look at this : Google like search
Plus there are ample other such links that will help you in your quest.
Related
I have try to get list of user search related locations is auto populated in search bar in Xamarin forms but I can't able find any solution. Please suggest any idea for getting list of location based user search text in search bar. Thanks in advance.
You can look the sample autocompletion into the TK.CustomMap repository.
TK.CustomMap is an override implementation of Xamarin.Forms.Maps.
Project:
https://github.com/TorbenK/TK.CustomMap
Sample: https://github.com/TorbenK/TK.CustomMap/tree/Development/Source/Samples/Sample/TK.CustomMap.Sample
The autocompletion can be used with Google API for location (or other provider like OpenStreetMap).
I want to create the application in which i can type any word into text box and when i click on "search meaning" it directly connect to google dictionary and give the following out put
1)Type of word ie Adjective or noun
2)pronunciation
can any one please tell me is this possible ?Is google provide such API ? I have searched a lot online but i didn't get any helpfull solution.
Go through this Link hope it will help you to achieve your desired Task.
http://www.codeproject.com/Articles/9156/Google-Suggest-like-Dictionary
How would I use the view google has in the test center (where i test my frontend)?
When a user browse to site/search.aspx I want the to get the view testcenter shows, searchboxes and everything. I would also like to add my own javascript and css to the page.
Is this possible?
Now I have created a search box with updatepanel to show the results but this approach will force me to do a lot of parsing and setting variables for the dynamic navigation. I.e. a lot of logic Google already serves in test center.
By the way, I dont want to use the McA+ library supporting GSA 6.14.
I serialized the xml result from the GSA to C# objects and then fed them to my frontend where I could handle them.
Example of converting XML to HTML using XSL in C# ASP.NET can be found at: http://www.codeproject.com/Articles/469723/Rendering-XML-Data-as-HTML-using-XSL-Transformatio
I've an ASP.NET page with a textbox and a option from user of the following choices: Wikipedia, Google, Dictionary.com, Flickr, Google images.
The user enters a word(s) in the textbox and selects a choice among the following.
Depending on the choice select by the user I wish to return the following.
Wikipedia: Return the content and link to the page corresponding to the topic about the word.
Google: Return the top 10 results of google search for this word.
Flickr: Return a few images atmost 10 images from flickr search
GoogleImage: Return a few images from google image search.
Dictionary: Return the meaning of the word.
How can I do that?
Since you are wanting to do some processing on the results prior to displaying them, your best bet is probably to invoke a web request on the server to fetch your results as RSS or some other parsable XML format.
So first up, we have Wikipedia, which has API support for open search, and queries with XML or JSON output. You can get the details of the API by going to: http://en.wikipedia.org/w/api.php
I would think either the query action, or opensearch action would be what you want.
Right, now there is Google, which supports search results as RSS through their Active Search feature. The link takes you to the main page where you can build the query, at which point it should be easy to drop in your search terms. There is also the Google Search AJAX API, which you can find out about here (See the "Flash and other Non-Javascript Environments" section for building the URLs directly. I believe this option should give you access to Google Image results as well.
For Flickr, have a look at this App Garden page. There are several output formats available to choose from.
I wasn't able to find anything real solid on getting results from Dictionary.com, but it does appear that they have an API. You might be able to dig through google and find some references on how to get search results as XML or JSON. There are also several other Dictionary sites which may have more information about their APIs. While searching I managed to find this SO question about word lookup from google dictionary.
Hope this helps.
Have an iframe within your page, and then set the src of the frame to the appropriate query string that you craft from the user's input.
This can be done from javascript within the page, in response to the user selecting something in the 'choice' dropdown. You can have the appropriate urls already embedded in the javascript (as variables), and just substitute in the user's input.
i'm trying to implement a little app which basically only hs a label, textbox and a button and when the user enters a word, i want to connect to some online api to retrieve the word's definition and display it in the label. is this possible? all i keep finding is api's related to other stuff on google/other se's. but i have seen this in practice before so i know they are out there, i just don't know where.
I suggest you try WordNet. It has got an API that you can use over the web.
Check it out here: http://wordnet.princeton.edu/wordnet/related-projects/#web
If you search more probably you will find, but let me give you a hint:
You can make a http web request to any website who handles word definitions. You can even search for "define: " + word in google and get the response.