Hi.
I'm programming a website section in DNN based on this sample:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx
I'm trying to display a google plus one button in the details page or user control by using a Literal control. This is my code:
The problem is that if I put this code in the view page, it displays correctly but if I put it in the details page it does not display anything.
I also put the javascript call to google api in the skin file so it can be seen by any module I insert in the website.
The other option I tried was that I downloaded a c# project which overrides Render method but it has the same behaviour in both view and details page.
Thank you.
Gerardo
I'm programming a website section in DNN based on this sample:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx
I'm trying to display a google plus one button in the details page or user control by using a Literal control. This is my code:
private void shareGoogle(int ProductId){ //url for sample purpose string url = "http://www.telerik.com/"; StringBuilder script = new StringBuilder(); script.Append("<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script>"); script.Append("<g:plusone"); script.Append(" size=\"standard\""); script.Append(" count=\"false\""); script.AppendFormat(" href=\"{0}\"", url); script.Append("></g:plusone>"); ltGoogle.Text = script.ToString();}The problem is that if I put this code in the view page, it displays correctly but if I put it in the details page it does not display anything.
I also put the javascript call to google api in the skin file so it can be seen by any module I insert in the website.
The other option I tried was that I downloaded a c# project which overrides Render method but it has the same behaviour in both view and details page.
Thank you.
Gerardo