I am building Teams Tab App using C# and Blazor App.
When 2 users looking at the same page (let`s say page with table inside) and making changes, they should refresh the page to see changes made by another user. I wonder, is it possible to sync content? Can SignalR be helpful in this case?
Related
I need to open a url tab when the user clicks an action.submit on an adaptive card. I do not want to user Action.OpenURL. In the OnEvent method, i would like to add some code to open a internet tab on the client side. Is it possible to open a tab in the client side (MICROSOFT TEAMS) from the server side within the Microsoft Bot framework? If yes, how could i do it in C#.
It is common to want to combine a submit action and an open-URL action in one button, so that the bot receives an activity when the user opens a page. Since no cards support double actions, there are a few ideas to explore when trying to get this to work:
Use a submit action and then have the bot send an activity back to the channel that makes a page open automatically
Use an open-URL action and then have the URL access the bot
The first idea is impossible unless you're using Web Chat because there aren't any activities that make a client open a URL, and if you're using Web Chat then you might as well extend it to support double actions.
For the second idea, there are a few ways to go about it. You could host a separate API that sends an activity to the bot or you could have the URL be in the bot's own domain and have it call the bot code directly. In any case, once the bot is notified about the action you'll want the user to be redirected to the actual page you want them to see. There's an example of that here: https://github.com/EricDahlvang/OpenUrlRedirectBot
I maintain a legacy (7yr old) ASP.NET 4.0 WebForm site. Our user base is around 2K-3K concurrent users during peak activity, usually in the spring of each year.
I've been able to trap in the code, a user submitting the same webform more than once to the server...however the user is only clicking the submit button once. I've witnessed the activity to verify single-click submission.
For some odd reason, the browser (chrome) is posting the same web form 2,3, sometimes 4 times to the server. It seems to happen to most everyone using the app and varies from once every 5th button click to as high as every 20th button click. These duplicate submissions happen within milliseconds of one another.
Is there a good way for the server to recognize another request from the user and ignore it? Since it appears the browser is the culprit, the page content for the submission would be identical on subsequent submissions.
fwiw, I'm aware of the anti-forgery methods for crossSiteScripting in MVC, but this app is strictly WebForm (no MVC).
I'm not a heavy web programmer, but can learn just about anything. Most of my time is spent in T-SQL. But such is the way with funding for maintaining older apps. :)
(WebApp/LoadBalancer uses sticky-sessions, with ASP.NET State Server supporting 3 web servers for this app, if it matters. Once a user logs in against a specific web server, all traffic from that user stays on that specific web server.)
edit: i did find this: Generating AntiForgeryToken in WebForms which I think is a good solution...need to absorb it for a bit and see how it works in my prototype project.
I am making an app, that fetches a lot of data when logging in. I would like to fetch this data from the web service in the background.
With "background" I mean something like the App.cs or something. The data is loaded, while the user browses it's way through my app pages.
My app now loads all the data on the login page, and then shows the main page. I would like the app to load the data, when I am on the main page, without the user having to wait.
Is such thing possible?
Thanks in advance
Matthew
Schedule the data download as a ResourceIntensiveTask Class. As the Background agents for Windows Phone 8 This is the best way to manage apps that have large data downloads that are not continually needed for instant use, like a navigation app.
It will download the data when the phone is not in other use and has good charge, and be ready for the when the user wants to use the app.
I want to include the Sharepoint people picker control type in my application, My app is developed in asp.net MVC. is there a way so that i can include the GAL feature in my asp.net application. This should work even if the outlook is not installed in user pc.
Taken from this page dated March 1 2013
"SP controls can only be used on SP hosted pages. Currently the only control designed from the ground up to be consumed on all page types (provider-hosted, auto-hosted or sp hosted) is the chrome control."
and another post from an MSFT
"I've consulted with several colleagues and the consensus seems to be that SharePoint's client side people picker, which is JavaScript, cannot be used in a provider-hosted app. The reason is that there's no way to get a client context on a remote web page. You mention the TokenHelper.cs which is managed code, not JavaScript. I have a question pending with the product team to see if there's anyway to get the context with managed code and pass it to JavaScript. I didn't want you to have to wait any longer for an answer."
I would suggest writing a plugin. (Although I have never had the requirement to implement it YET)
How :
you write a controller that loads users from AD, and then send a JSON object of these to your client via AJAX and then use jquery auto complete to filter names as the user types.
Or
Simulate the "check User " button by making AJAX calls to that controller and check if name exist on click of that button. then write appropriate error messages if false.
I would still be on the lookout for other solutions though
First of all, sorry for my newbie question...
I am google-ing for something like that for days, but still no luck.
I can't find any examples for using the Facebook C# SDK
with Facebook Page Tab applications.
Unfortunately most examples are for Facebook Canvas applications
and I can't make them work with a Page Tab application.
I really need to see a working example of the following:
Get whether the User Liked my page, or not.
If the User Liked my page, show an "authorize" link/button.
On clicking the "authorize" link/button, ask for User's permission to:
access his info, post to his wall, etc.
(using facebook's usual dialogs for that)
After the User accepts, redirect him to the "member's only" page.
(...inside the tab application frame. not a canvas-type frame)
Whenever an "authorized" User comes back to my tab app,
he should be automaticaly redirected to the same "member's only" page.
(I suppose if I have an example for the previous steps,
I won't have a problem figuring this out)
Building app for canvas is the same as making it for Page tab. The only difference is the so called "fangate" (liker/non-likers).
This can be used out of the box only on page tabs and the only thing you need is to decode the signed request passed by facebook.
There is good explanation for doing this with C# here:
Decode Signed Request Without Authentication