Document upload fails when SPDataSource is used with DataView – Bug in DataView webpart?

I used SharePoint designer to insert a DataView on my page and then dragged my document library onto it to set it as a DataSource. I have enabled “Show insert item links” for my DataView. When I open the page in a browser and use the insert item link to add a new document to the library, it fails without any error message. The SharePoint Designer generates the following code

<xsl:when test="$Mode = 'insert'">

<tr>

<td class="ms-vb" width="1%" nowrap="nowrap">

<a href="javascript: {ddwrt:GenFireServerEvent('__commit’)}">save</a>

</td>

</tr>

It appears that the above javascript call is not working as expected. Using ddwrt:GenFireServerEvent('__commit;__redirectsource') instead of ddwrt:GenFireServerEvent('__commit’) did not help. Is this a known issue with the DataView webpart’s insert functionality?

[1886 byte] By [Harpreet86] at [2008-1-10]

SharePoint Products and Technologies

Site Classified