SelectPdf add page numbering outside footer - asp.net-core

I'm using SelectPdf in my ASP.NET Core Web API, it's possible to show page numbering outside footer? In middle of the page for an example.
Any help?

Related

How to show the .Net Core Identity RazorPage somewhere other than its default location?

.Net Core 6, MVC, and your basic authentication with Identity set up (which is RazorPages only), but I want my Home/Index.cshtml page to "host" the Identity/Account/Login page, preferably without having to resort to an iFrame.
Everything I've seen so far is simply how to build the Login page, but nothing on how to put the page somewhere besides its default location.
How do I put the Login form/page on my MVC Home/Index.cshtml page?
How do I put the Login form/page on my MVC Home/Index.cshtml page
Login page is a razor page not a partial view, so you cannot use <partial> to add Login page in the Index view. You can put your code for login in the Index.cshtml, but you may need change a lot, like building the Login page.
If you add below code in the _layout, so that you can login at any view you want.
<partial name="_LoginPartial" />
result:

Add a custom page to Spartacus

Probably my question is a bit dumb as there is a lot of documentation about routing. The problem is, I am not an angular specialist, so I am missing a bit of context.
I would like to add a custom sub page (http://localhost:4200/image-upload) to spartacus. The Header and Footer should be the same. Just the content should be an upload form.
Where and how do I configure the route?
Add a new content page in CMS with page label /image-upload (with the leading slash). Spartacus routing should handle it OOTB. https://sap.github.io/cloud-commerce-spartacus-storefront-docs/adding-and-customizing-routes/
Add a layout config only if your page has custom layout https://sap.github.io/cloud-commerce-spartacus-storefront-docs/page-layout/#configuring-the-layout
Implement Angular CMS components that should appear on this page and configure mapping from CMS component type to the implementation https://sap.github.io/cloud-commerce-spartacus-storefront-docs/customizing-cms-components/#page-title

Sitefinity Custom Backend Pages MVC

I know how to create a backend page through the UI (../Sitefinity/Administration/BackendPages/Pages). Is there a way to add one through the project in VS so that I can create a custom MVC Admin Page with control over the controller and styled similar to the rest of the backend?
I would like to add a new section at the top in the backend similar to Dashboard, Pages, Content, Design or Administration which links to one custom MVC page.
Best is to create the page through the Sitefinity UI and then just add your MVC widget to the page. Page will look exactly as the other backend pages and you will have control over your widget.
Normally you would create a Group page at top level, e.g. Custom Stuff and then a standard page underneath.
Found a good solution to this in combination with Veselin's answer above. Once a page is created through the Sitefinity backend at ../Sitefinity/Administration/BackendPages/Pages you can add custom MVC widgets. In order to restrict widgets to only appear for the admin pages you can register them to the section 'Dashboard' that is only available for backend pages:
[ControllerToolboxItem(Name = "CustomAdminWidget", Title = "Custom Admin Widget", SectionName = "Dashboard", CssClass = "sfMvcIcn")]

Dynamic header and footer liferay

I am searching the way to use a jsp file in the web content, because i do a dynamic load of dates to show on a navigation bar. Also, I want set this web content as header and footer.
Actually my page is this, http://pachonweb.no-ip.org.
I want to replace the Liferay's header by portlet's page shown in below
Thank for your help.
for adding web content in header and footer u need to call web content in theme.
you can refer
https://www.liferay.com/community/forums/-/message_boards/message/24879333

ASP.NET MVC, razor view, how to modify html on the fly like Glimpse?

I'm upgrading from .NET 2.0 to MVC 4. Back in .NET 2.0 webform, we had to inject license information on the fly to the footer of the software by override the "Render" function in .aspx.cs page (using HtmlTextWriter), find a particular spot of the footer and then insert the license text info there.
The reason I don't want to directly put that in the viewstart page or any razor page themselves using HTMLhelper is because I don't want my customers to mess with it. So hard code is not an option.
I use Glimpse and I see Glimpse is enabled by adding a HTTPModule,etc in web.config and magically, an icon appears on my app. Something similar ?
Bottom line is, I need to hijack the finished HTML output, modify it and return the final result to client.
How do you do this in MVC? HttpModule?
Thanks!
Glimpse uses a feature of ASP.NET called a ResponseFilter to change the output HTML on the fly.
The ResponseFilter, in the case of Glimpse, is set inside the HttpModule - but it could be set anywhere.
Four Guys From Rolla has an old but still relevant article on how to create ResonseFilters.