C# .NET - passing path Dynamically in MVC3 - Asked By ALOK RANJAN on 02-May-12 07:08 AM

hi,
      how we pass path dynamically from controller  here...

<%:Microsoft.Web.Helpers.Video.MediaPlayer(path:"~/Content/Video/jj2008_100.wmv",
          width: "400",
          height: "600",
          autoStart: true,
          playCount: 2,
          uiMode: "full",
          stretchToFit: true,
          enableContextMenu: false,
          mute: false,
          volume: 75)%>


please help me....

kalpana aparnathi replied to ALOK RANJAN on 02-May-12 07:11 AM
hi,

You could use the http://msdn.microsoft.com/en-us/library/system.web.httprequestbase.rawurl.aspx property or Request.Url.ToString() or Request.Url.AbsoluteUri.

Regards,