// ASP.NET MVC Controller public ActionResult GetTime() { X.Msg.Notify("Server Time: ", DateTime.Now).Show(); return this.Direct(); } // ASP.NET MVC View @Html.X().Button() .Text("Click Me") .DirectClickUrl(Url.Action("GetTime"))