I have a situation while uploading file . If file upload control has file then it will pick the path from file upload control else it will the path saved in ViewState["ImagePath"].I want to make it generic so that , whereevr I need such upload scenario I can use it. But while implementing I cant see, If I can use ViewState in a class library project. \[code\]I have following two questions in mind:1. Is there anyway to access the ViewState for current page in class library project?2. If above is not possible, then Why? AFAIK almost everything is available for class library project. Then why not ViewStates?\[/code\]