I am doing webparts in sharepoint and I want to transfer the data from one to another. I tried the 3 ways but they all fail. Any idea? It just says An unexpected error has occurred.
'Unexpected error' == server error 500? if so, turn on custom error reporting in web.config to find out what the problem actually is.
Google "connected web parts" - there's a built-in, easy way to pass data across parts.
Hi Ahmad
If you want to transfer information from one web part to another on the same page the look at "Connected web parts" as Greg suggest
If you want to transfer information to web parts on another page the use the query string but don't use names like "id", "listid", "field" which has special meaning to SharePoint like http:/xxx/Shared Documents/EditQuestion.aspx?id=3 which tells SharePoint to load the doc with ID=3 from the Shared Documents and use that as SPContent.Current.Item
For the question "No item exists at url, it may have been deleted or renamed by another user", here is good explanation and solution. http://praveenbattula.blogspot.com/2010/02/sharepoint-exception-no-item-exists-url.html