I have an ASP.Net MVC 3 web application in which an administrator can assign tasks to individual users. Individual users monitors some stats by looking at a dashboard page built in the same application. My requirement is, I want to notify the individual user whenever a new task is assigned to the user. Is it soemthing which can be achieved in the web application built on .net technologies?
You can use jquery to auto refresh.
Auto refresh a section of the page that loads from the database
Jquery auto refresh Tutorial
Related
I want to create a Deeplink to my tab application which is running a custom web application. The web app is running on azure app service (let's say the URL is https://XYZ.azurewebsites.net). The custom app is built using React. Now what I want is to create a deeplink which will redirect the user to a custom page like https://XYZ.azurewebsites.net/items/{id} inside the tab. Basically, a deeplink which will redirect the user to a specific item page.
What I feel like using sub entity id it's possible, but I am not sure how to Form the url here as I do not find SubEnityID in my app manifest.
Any help would be appreciated.
Thanks in advance
I have a progressive web appliacation. on the home page i have a loging modal. If a user logs in the application reloads and now instead of the login button the server renders the user profile. now the problem am experiencing is that when i implemented the pwa, It caches the homepage and everything in it so the new page from the server is not rendered after the user logs in.
My application backend is in Nodejs(REST API) and is use javascript to consume the api but i use ejs to render the pages. How can i solve this?. For now i decided not to cache the homepage where i have the login modal. After doing this i realized the application is now not meeting PWA installation requirements.
You can cache everything in the service worker.
When you need to display different content for an authenticated user vs unauthenticated user you can render that as needed either in the UI code or even in the service worker.
A common example would be to show/hide the login, logout and profile link in the header. This is all doable with a few lines of code as the page is loaded.
These examples are mostly classList.[add|remove|toggle]. The profile might use a simple template and setting the innerHTML of a wrapper.
It is not that complicated in the end, I do this all the time for applications.
It sounds like you shouldn't configure your service worker to cache your normal HTML. Instead, you can use a service worker that will always go to the network when online, and will display custom "Sorry, you're offline" HTML when there's a navigation request that fails.
Here's a live example of following this pattern:
https://googlechrome.github.io/samples/service-worker/custom-offline-page/
Doing this will is sufficient to meet the "add to homescreen" PWA installation requirements.
My solution directory has ASP.Net 4 web-forms project, that at present has all the development of my website.
The plan is migrate some of the existing front-end to ASP.Net5/MVC6 web application. And for that to happen, I have added ASP.NET 5 empty web application to the existing solution directory. The reason I have decided to use blank template is so that I can add all the required capabilities myself, and understand the flow better.
Capabilities like MVC, Session, Caching, Logging etc.
I have added MVC capabilities. And to add Session related capabilities I have followed the steps given in the below documentation,
https://docs.asp.net/en/latest/fundamentals/app-state.html#installing-and-configuring-session
After this, I am able to add the access the Session in my controller class. I can put some values in the session and can access it in view to verify Session is operating fine.
Both of my web applications (ASP.Net 4 and ASP.Net 5) would be running side by side, and I want to enable user to navigate back and forth with a single sign on. That effectively means, they to share same session.
And hence, I am looking for a way to access SessionID from the Session, so that I can check whether the value is same for both the websites, however there is no method that gives me SessionID...
Can someone explain why it is so and how to retrieve unique session identity?
I have two separate web applications to handle a website for customers and other admin application for call center agents. Using the build script I am bundling the same model classes into both web applications.
There is a database for customers where we keep the password. If we change the password from website it should be immediately shown in the admin site. I am not using distributed cache.
Is there a simple way that I can enforce reload from database for a specific flow? So that I can reload from database if I want to get the password property.
If you don`t want using distributed cache, you could remove element from admin cache. Customers application should notify admin application about this event. Possible way to notify is simple rest call.
i have created an mvc3 web application that uses forms based authentication. one part of the site has links to microsoft ssrs reporting services reports and these reports are launched in an iframe from one of the views.
the problem i am having is that when a user log's into the main site and then subsequently clicks on one of the reporting links, they receive a windows modal login box.
i would like to stop them from receiving this authentication step and rely on the forms based authentication they already went through. at the same time i want to prevent non-authenticated users from typing in one of the ssrs report links into their browser and viewing them without having logged in..
can this be achieved using forms based authentication alone?
thanks
grant.
Have you set up SSRS with forms authentication? If not then if you configure forms authentication on SSRS then you can share forms authentication across multiple applications.
I can't describe step for step how you would do this but hopefully the following links will help:
Authentication in Reporting Services
Forms Authentication Across Applications