Hi, I have a question, hopefully you can help me.
What happens is that I have a view called (index) qe has a table inside, then in the tables of the table I invoke the same view several times called (prev), in "prev" I have a main div with id="main" that has to contain an image.
The problem is that I want each image to have a different size and position depending on the size of the "main" div, which has a size defined by the size of the table in the table where it uses "renderpartial (prev)", create a function js to do this to change the size and pocision of the image, but as you know the partial views has no context independence, and, the file that the browser reads, receives a table with all the tables loaded with the same div=" main "and the function js qe changes the size and pocision of the image only works on first div=" main "by qe all div are called equal. This would not happen if each partial view had its own context. Any way to do what I need independently between partial views?
P / D recommended me to generate within "prev" the IDs of the div="main" at runtime, something like
<div id="principal@ViewData["indiceRecibido"]"....
but I do not know if it would be a good practice.