Use the Url Query String with the DataFormWebPart

This article introduces how to use the Url Query String with the DataFormWebPart.

Use the Url Query String with the DataFormWebPart_第1张图片

 

Here are the steps:

1. Create one list with some columns and input some test data into it

Use the Url Query String with the DataFormWebPart_第2张图片

 

2. Use the Microsoft SharePoint Designer 2010 open the list, and create a new form for it base on dispaly form:

Use the Url Query String with the DataFormWebPart_第3张图片

 

3. Eidt the added form(add a filter for its data source)

4. Switch to the code view, update the QueryString(ID)toQueryString(MessageID) since ID may be confilct with other

 Use the Url Query String with the DataFormWebPart_第4张图片

 

5. Then copy that page to any where you want in the some site collection, and try to open it by

http://......./ShowMVPMessage.aspx?MessageID=2

 

Note, if you haven't done the step 4, you may be will get a error message:

No item exists at.  It may have been deleted or renamed by another user

你可能感兴趣的:(String,list,Microsoft,url,query,SharePoint)