Hi Friends,
How to use the upload option the inbuilt one after seeing the page source code i Got the below link and i get the root folder as query string.
<aclass="ms-addnew"id="idHomePageNewDocument"href="http://Sitename/sites/KPG/_layouts/Upload.aspx?List={F00B05E8-244F-46FA-B9D2-83C13FAD8BEA}&RootFolder=%2Fsites%2FKPG%2FShared%20Documents%2FDocumentscanbedel"onclick="javascript:NewItem2(event, "target="_self" http:=""sitename="" sites=""kpg="" _layouts="">Add document</a>
My Question is how to add dynamically to the href and onclick event .
Any help is greatly appreciated..