Reputation: 239
I have .ashx file. How can I call this file in MVC?
Something like this:
<a href="LoadFile.ashx?id=033">load</a>
Thank you!
Upvotes: 6
Views: 7420
Reputation: 20780
ASP.NET MVC does not prevent you from adding a typical ASHX handler. For example here's what I did:
For the link you just need to set it to
<a href="/HandleMe.ashx">click me</a>
Upvotes: 5