Multiple views/controller using ROTATIVA - asp.net-mvc-3

I am using mvc3 razor.
Is it possible to print multiple views/controllers to create a single pdf using rotativa.

Related

Is it possible to pass values from a Razor component to a Razor page?

I'm integrating Razor components into ASP.NET Core Razor Pages in my Blazor Webassembly project in order to keep the UI consistent between the client and server.
One of these components is a multiselect dropdown and I'm having a really hard time getting the model of my Razor page to bind to the values in my component.
Is there another way I can pass data from my component to the page? I know it's easy to pass data the other way via parameters, but I'm struggling to work out how to do it the other way around.

Export view to Excel or PDF using mvc core and razor

We are trying to export both partial and complete views to Excel. The code almost produce what we want but we have a problem that we must get fixed.
The file doesn't have the excel extension and we have to choose a program to open the file, that behavior is not wanted. :)
Below is an example on how we set the response header and return a partial view with the model we want to put on excel spreadsheet (from within a controller/action).
Response.Headers.Add("Content-Type", "application/ms-excel");
return PartialView("~/views/customer/_PlantListPartial.cshtml", plants);
How can we achieve what we want and is it even possible? And yes, we run asp.net core on .net framework, not .net core framework.
Add one more header:
Content-Disposition: attachment; filename="filename.xls"

Creating Forms Dynamically in Kendo UI Mobile

I need to create forms dynamically in which the required field parameters will come from the backend. I will use input, dropdown and switch as form elements.
Is there a kendo specific easy way to generate these forms like kendo is doing in listview using template and datasource?
You probably want to check our MVVM framework for this. And some demos.

How can we validate the pdf form using javascript?

I am planning to validate the entire PDF form using JavaScript. I was just wondering is there any pre-defined functionality for validation? if not please suggest me how can i write the script for validations?

MyUpdatePanel.Update() in Razor

I am trying to convert my existing ASP.NET application to MVC 3 Razor. I use a lot of updatepanels, and I do conditional updates at the code behind using MyUpdatePanel.Update().
I am not finding this functionality with MVC 3. I can see a lot of blogposts talking about jQuery and how to use it to achieve the same, but I want to render other partialviews from my action conditionally. Is it possible to achieve it?
The way you'd work with Ajax in ASP.NET MVC is completely different from the ASP.NET way (i.e., Ajax toolkit with server-side controls such as UpdatePanel).
ASP.NET MVC is more basic and therefore more work. You handle Ajax calls on the client side using a library such as jQuery, and on the server side you implement a controller with Ajax methods.
Have a look at http://sweettam.blogspot.com/2011/06/aspnet-mvc-3-ajax-part-i.html.

Resources