hi,

i'm pretty new to all this so excuse if this is a silly question. I have trawled google but havnt found a direction which convinces me yet.

I need to develop some sort of control that can be wrapped in a webpart and used on sharepoint site. This control should launch a new infopath form based on an existing template and pre-populate a field on that form.

I have developed javascript that does this and simply saved it as an html page attaching the script to a button click to prove it works:


http://www.w3.org/1999/xhtml">

Test bit of javascript page




My problem now is to create the control. Should i be using a custom web control, a user control etc ... I'm a bit stuck on how to achieve my aim. I know what i need to do but dont know how !!

Hope someone can give me some advice / code snipppets or point me to a good tutorial.

thanks

Graham