# Accessing viewPath property for WrappedView when using MVC WebFormView

**URL:** <https://community.miniprofiler.com/t/accessing-viewpath-property-for-wrappedview-when-using-mvc-webformview/387>\
**Category:** .NET\
**Created:** [April 27, 2015, 11:50pm UTC](https://community.miniprofiler.com/t/accessing-viewpath-property-for-wrappedview-when-using-mvc-webformview/387 "2015-04-27T23:50:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferpaz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/ferpaz/32/843_2.png) [@ferpaz](https://community.miniprofiler.com/u/ferpaz)\
**Post date:** [April 27, 2015, 11:50pm UTC](https://community.miniprofiler.com/t/accessing-viewpath-property-for-wrappedview-when-using-mvc-webformview/387/1 "2015-04-27T23:50:54Z")

</div>

I checked the source code for WrappedView and the method only supports Razor View Engine.

```
/// <summary> 
/// Gets the wrapped view path. 
/// </summary> 
public string ViewPath 
{ 
    get 
    { 
        var view = _wrapped as RazorView; 
        return view != null ? view.ViewPath : null; 
    } 
} 

```

I have a MVC proyect using WebForm View Engine and I need to access ViewPath.

What can I do?
