The following description is NOT essential for my question (or for your answer) but it serves as an explanation of my problem. Basically, I am using a devexpress MVC gridView and I am building a dynamic object in the controller that is passed to the view. In the controller I am defining an Action<GridViewEditItemTemplateContainer>
that is accessing a specific grid row, till now I have not a problem. BUT, now I need to use the CURRENT htmlhelper to write into it (it was already created before my "lambda action" is executed.
So, I thought:
if the view that has already been executed BEFORE my lambda action, then perhaps somehow I should be able to access the stakeFrame / stackTrace in order to access an already created object
In this case, the current htmlhelper from the View that called my lambda.
Is this even possible to do? if so, how?
Note: I do NOT want to create a NEW htmlHelper. Example: var h = new HtmlHelper(new ViewContext(ControllerContext, new WebFormView("omg"), new ViewDataDictionary(), new TempDataDictionary()), new ViewPage());
Aucun commentaire:
Enregistrer un commentaire