This function is only for navigating to #convert, but you can easy change the function offcourse:

If anybody knows how this is possible in ASP.NET, let me know, I'm not a freak yet
Blog about Sharepoint (WSS/MOSS) 2007 & 2010, Web Parts, Workflows, ASP.NET, .NET 3.5