Scenario:
I faced some issues in past using View as query parameter in sharepoint.That time i changed the query parameter name and everything worked fine.
I never got a chance what was wrong that time and today I was reading an article and got the details solution.
Solution:
SharePoint itself uses some query parameters, you can say they are reserved keywords. Specially when you are using Context.
So If you are trying to get information about Current View , basically SPContext object inpects the query string for the query parameter View and that might create some problem if you are also setting View as query parameter for some other purpose.
Even though this situation is very very rare. Still try avoiding few keywords listed here.
Code:
FeatureIdArticle:
ListTemplate
List
ID
VersionNo
ContentTypeId
RootFolder
View
FolderCTID
Mode
Type
Stefan Gossner
0 comments:
Post a Comment