Jim Bonnie's Blog

Oct 12

Written by: jbonnie
Wednesday, October 12, 2005 7:00:00 AM 

Integrating dotnetnuke with virtual earth continues to be an exciting ride. Javascript is another piece of the puzzle to add to the mix.

Today's adventure has been looking to load a bunch of stored information onto the map. The Virtual Earth API is in javascript, so how to get that information from a DNN datastore into a javascipt module to call the VE API ?

RegisterStartupScript to the rescue! This handy function documented in the .net framework allows javascript code blocks to be added to the end of your generated html for an aspx page.

So, we have some server side controls that pulls the data from a DNN DAL, generates the JS dynamically and RegisterStartupScript inserts into the page. The code generated is actually a function that is called on the JS onepageload.

One more piece of the puzzle down!

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 

Navigation

Register Login

About Me

Thanks for stopping by. My name is Jim Bonnie and I have been writing software for over 20 years. After building financial data systems for Reuters for nearly 18 years I have started doing contract work and am excited about technology and currently focus on Microsoft solutions. DotNetNuke has helped provide a good introduction to ASP.NET web application development, and I am now starting to branch out into other areas. Data Access techniques and SubSonic is something that I am looking into now. This has helped me get an invitation to speak at Las Vegas at DNN Open Force 07. it was a great time. And I am looking forward to OpenForce08, where I wil be presenting on TDD for DNN.

 

Reading the codebetter blogs and attending a nothing but .net training class with JP Boodhoo helped spark my interest in ALT.NET. I attended the first conference in Austin Texas, and it was amazing to see Scott Guthrie introduce the ASP.NET MVC framework.

Add to Technorati Favorites

View blog top tags

Links

Jim Bonnie's Blog

Jim Bonnie's Blog

Jim Bonnie's Blog