0
I have the following command
@Html.EditorFor(m => m.DataDoDesligamento)
In it is placed a date, and when clicking on a button should redirect to a report, only that I need to pass the parameter dateDesligment to send the specific report, as follows.
<a target="_blank" type="button" class="btn btn-red" href="~/Relatorio/Relatorio.aspx?dataReferencia=@dataDesligamento">Simular desligamento</a>
And I have no idea how to do that.
Use can be easily solved in Javascript, you are using [tag:Jquery]?
– Matheus Cuba
How I can solve through this?
– Thayna Valadares
On the front end of the page, you will get the value of the field when the user clicks the go to report button (I will create my answer with more information), you did not answer my question, you are using Jquery in your project?
– Matheus Cuba
@Thaynavaladares Be more specific. What is the code that generates that href?
– Jéf Bueno
Not being used jquery
– Thayna Valadares