Saturday, May 10, 2014

List View WebPart Filtering using Paramater Value

I am going to share about filtering list view webpart using querystring. We have an option to filter a list view using paramater. Here is the sample querystring for filter a list.

http://Server:Port/Sites/PageName.aspx?FilterField1=FieldName&FilterValue1=Value

The above code will work for if we have one list in the page. You need to mention the view GUID if you have more than one list. Here is the sample querystring to filter with view GUID

http://server:port/sites/Page.aspx#InplviewHashGUID=FilterField1%3DFieldName-FilterValue1%3DValue

Replace the italic text with your Values.

Happy Coding..... !!!!!!

No comments:

Post a Comment