I work on asp.net razor pages . i face issue i can't display popovers content on all pages of web applications
Iit working and display on some pages and some pages not working
popovers exist on layout page and all pages inherit from it
so my question why popovers not working on some pages and working on another page
i need to know why it not working
my layout page as below so
content This is the popover content. not show on all pages so why and how to solve this issue
@RenderBody()
???
Mudzakkir TohaPosted Jun 6, 2023, 6:16 AM
Better you use @html.raw("
Mudzakkir TohaPosted Jun 6, 2023, 6:14 AM
which version of bootstrap do you use? Have you correctly include bootstrap version on the layout page ?
for bootstrap v3.3.7 the content is located at data-content property :
Rajkiran SwainPosted Jun 6, 2023, 6:09 AM
data-contentattribute to the popover element. Replace"Popover Content"with the specific content you want for that page's popover:By setting the
data-contentattribute on each individual page, you can customize the popover content for different pages.Make sure that you have included the necessary jQuery and Bootstrap files in your layout page or in a shared layout file that is used by all pages. Additionally, ensure that the script block for enabling popovers is placed after the jQuery and Bootstrap script references.
With these modifications, each page will have its own popover content, and the popovers should display correctly on all pages.