Hello Code Project,
I'm using Google Custom Search (GCS) in my application. I have created separate page named "GoogleCustomSearch" for that, and its indeed working fine..
But my question is, how can I search from the Master Page using this GCS?
Thanking you in advance :)
Okay so my code is being concerned so far, here I have also posted the code:
//this code is under HEAD section
<script>
(function() {
var cx = '015345991604875741939:aau25ao69wm';
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>
// this code is on Result page
<gcse:search></gcse:search>
So here I am able to perform search from result page, though I have put my code on master page I am not able to get the result on Result page....