It was more simple that I though. WebForm can't take in Razor partial view. BUT Razor view engine takes in WebForm partial view. So it isn't issue at all.
What I did.
- Create some shared project.
- Add Partial.ascx file (and some js files) in sub folder of this shared project.
- Add reference to this project to my sub projects.
- Add as link partial view (and some js files) to sub projects.
So now we have partial view that is shared between number of projects.
PS: Be aware, my projects have only one view engine for improving performance. All other were removed: ViewEngines.Engines.Clear();
and added ViewEngines.Engines.Add(new RazorViewEngine());
Razor only. So I have to remove this code from my Global.asax file.