Blog Stats
  • Posts - 39
  • Articles - 0
  • Comments - 20
  • Trackbacks - 36

 

Data View Web part goodness

Have you ever wanted to pass a parameter in the URL to a data view web part page?  There's a real easy way to do it. 

1. On the page with your web part, look at the code and search for ParameterBinding Name="filterParam”
2. Now look for the location attribute in that line (like location=”Postback;Connection”). 
3. Change its value to Postback;Connection;QueryString(YOUR_PARAM_NAME)
4. Now you'll need to add a filter to the data view in the data view properties
5. Add a new clause and select your field name that you want to filter on
6. When you select Value, you'll be able to choose [Input Parameter]

That should take care of it.  Try it out in your browser with a url like:
http://www.yourwebpageaddress.com/yourwebpartpage.aspx?YOUR_PARAM_NAME=something

 


Feedback

No comments posted yet.


Post a comment





 

 

 

Copyright © Solid