PDA

View Full Version : Any ASP.NET experts out there?



riffer
29th April 2010, 17:21
I have to put a widget on our website - www.micrographics.co.nz (http://www.micrographics.co.nz) to celebrate Records Awareness Week next week.

Trouble is, our site runs on DotNeNuke, which means its running ASP.NET - and ASP.NET only allows one form per page, which is used for server side control.

So, it's ignoring the form code for the widget.

Widget code is:

Search: RAW 2010 - Industrious Kiwis: Archives & Industry



http://www.digitalnz.org/images/search/powered.gif
function DNZOptions() { DNZSearch.APIDomain = 'http://api.digitalnz.org/'; DNZSearch.hostedDomain = 'http://search.digitalnz.org/'; DNZSearch.serverRoot = 'http://www.digitalnz.org/'; DNZSearch.searchSlug = 'recordsandarchivesweek2010'; DNZSearch.APIKey = '2288c852c37ff96859bfea3567af7446';
DNZSearch.stylesheet = 'http://www.digitalnz.org/content/stylesheets/archives.css';
DNZSearch.logo = 'http://search.digitalnz.org/content/logos/0000/0284/archives.jpg';
DNZSearch.numberOfResults = 4;
}

Now I've tried to get around it by using the "onclick" method described here (http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/45/allowing-html-form-submissions-from-dnn.aspx) but damned if I can get it to work.


Can anyone fix my code for me please?

mashman
3rd May 2010, 16:17
So you're calling a javascript function from a webpage? If you're using .Net you can use the onclientclick event in image tags... You might be able to get around it by using IFrames too...