Unfortunately, you cannot do this in a partial view.
The reason for this is that by the time your partial view is being processed by the view parser, the main layout (which contains the tags <title></title>) has already been written to the application response stream, ready for blushing in the browser.
, , , , .
, ( - , ), Javascript.
:
<script type="text/javascript">
document.title = '@ViewBag.Title';
</script>