asp.net mvc multi-parameter requests for dynamic images? -


In webforms, we have to do something like this to set a handler to generate a monster image:

  & lt; Img src = "/ barchart.aspx? Width = 1024 and height = 768 and chart id = 50" & gt;  

Then we use the parameter to render the image. Espex will write the code on the page and write it back in response.

I honestly do not know how to make such a request with MVC should be set up / operated and how we see it (in common terms) from one view.

Any sign or advance is very welcome.

If I understand the situation correctly:

  public class ImageGeneratorController: A link to create {public performance bar chart (integer width, integer height, int chartId) {// asp.NET MVC method will argue the request parameter}}  

:

Url.Action ("Barchart", "Image Generator", New {width = 1024, height = 768, chart id = 50});

will be output:

  / ImageGenerator / BarChart width = 1024 and height = 768 and chart id = 50  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -