I have a ASP.NET MVC 4 app.
I want to copy a text(from PDF) CTRL+C and paste it as parameter in a method from a controller.
My webgrid has column with an ActionLink
grid.Column(" ", " ", format: @<a href="@Url.Action("Clipboard", "People", new { cbdata = window.clipboardData.getData('Text') })">Clipboard</a>),
...
[HttpPost]
public ActionResult Clipboard(string cbdata) // is string ok ?
{
//I'm doing something with my clipboard data ..
return View();
}
This part is not working : window.clipboardData.getData('Text') Do I have to modify my MapRoute in Global.asax.cs ?
Q : How can I get the data from my clipboard in a method from my controller ?