Hi Guys
Thanks for all contributions to my “Google Search” problem.
I finally got it working by putting the code in an HTML file and install the file in the Iframe module. Problem was that DNN upload didn’t accept HTML direct in the form, but installing the file directly in the portal with FTP worked fine.
Problem now is that I doesn’t seem to have much setting options in the Iframe module?
I can set align to centre or right, but the search still appears in the left side of the pane.
It’s working anyway!!!
Cheers
Olle…
PS, can someone tell me how to find the below message – and sender?
Google Adsense Search in an ASP.NET Page
Tonight I tried to add Google's AdSense search code to the right nav area on my site. According to the Google AdSense site all I should have to do is paste the google script code in my page. The problem was that Google's script is an HTML form.
This obviously didn't work because of the problems with nested form tags in an ASP.NET page. Here is how I ended up getting around this. I moved the above code into it's own html file you can view here. Then in my right nav ascx file I included the following iframe code which loads the html page in the frame and allows the form to post as intended:
<IFRAME name=SearchFrame src="pt_google_search.htm" frameBorder=0 width="98%" scrolling=no height=112>
<a href="pt_google_search.htm">Search Page</a>
</IFRAME>