I have more than one webbrowser controls on my program, and it seams they all share session cookies.
What i want is that they DONT share the session cookies.
I have different webbrowser controls that opens the same website with different accounts, or open the same web-page that store different data in session.
Anyone has any idea?
Note : this question already posted by #Haroldis,Link old quetion Hope now he found the solution already because I having this problem also.
As mentioned in the answer you linked, this is not possible with the standard .net web browser control.
IF you genuinely need to display the pages in browsers to the user (rather than just send or recieve data, in which case webrequests are your answer) then you have a few options via third party software.
1 would be WaTin, which allows you to launch and control separate browser instances, with the option of not sharing cookies.
Another option would be awesomium, which has a .net wrapper and can run independent instances since v1.7, though i have not tested it a great deal.
Related
I have a question regarding executeJs function.
page.executeJs("$0.click();", downloadAnchor.getElement());
This line of code is not working in real iPhone Safari browser, though it works in mobile responsive mode from desktop safari. Appreciate your help on this
Browsers will be "suspicious" of anything starting a download that isn't a direct reaction to interaction by the user. This is done as a security precaution since starting to download files without the user's explicit consent can be dangerous in specific cases. Different browsers and configurations have different policies for exactly where to draw the line.
In your case, the download isn't started as a direct consequence of user interaction but instead as direct consequence of receiving a message from the server. This kind of pattern will simply not work reliably no matter what you do.
Instead, you need to design the interaction so that the download is directly triggered by the user. The easiest way of doing that is by having the user directly click on the actual download link. If you want to have some indirection, then you still need to make the action work directly in the browser without going through the server.
In the Service Now platform there is a feature that emulates users. Is there a one in Dynamics 365 ? As of now, I am opening multiple tabs in different browsers to test user apps/forms/solutions.
No out of the box feature for this.
Couple of ideas;
Use Firefox in conjunction with Multi-Account Containers. This allows you to effectively have multiple active sessions for different users open within a single browser. This might be easier to manage.
Use a single user, but write code to automate the switching of security roles. This way you can rapidly switch between different user roles.
Unfortunately, there is no way to do User experience emulation of different persona by OOB or with community tools. Only way is different browser window with different credentials (In-cognito or Run as different user).
Only simulator available is in Form editor - Preview option, to see how the Form looks-like with Tab/Section/Fields in Create/Update/Read-Only mode for Desktop Client.
With some Chrome Addins, we can impersonate a different user only on Unified Interface (UCI) not on web UI. Read more
Essentially, we just need to add the MSCRMCallerID header to every API request. One way to do this is using the "ModHeader" extension for Google Chrome. Once you have it installed, create a new profile to add the header to all requests for your environment. It should look something like this...the MSCRMCallerID is the GUID of the user you want to impersonate.
i once saw a friend of mine whom was very good at visual basics and asp as well as c#. At the time i had no need to learn VB as i found php enough for my needs. While now since ive been in developing for a longer time i see why people use c#. It has its special place. My question relates to one of these special cases.
However i need your help to figure out how it was done.
What my friend did:
I had a wordpress site at the time. Because of our clients, we didnt want them to login backend and fill in the fields in the CMS. We wanted a deployed executable exe that the clients could install on pc and fill in the required data in simple forms that wont confuse them. Once the form was complete they would post the data to the wordpress cms in the background not visible to them. Using a webbrowser in the exe is what i recall my friend doing.
What i want to do:
I want clients to fill run an exe. They would then need to add login details to validate themselves. Once they logged in i want a very simple form that provides the necessary fields that the cms needs to fill in which will complete the post needed to render their page or profile on the actual website. In other words i want VB to connect to my website from a exe using forms to fill in data rather than going to the cms on a normal chrome or explorer browser.
I know you wondering why i want this. It seems like one hell of a work around. Well im a php developer whom needs a exe. I want to be able to package the exe physically in our portfolio when we hand it to clients. It becomes part of our presentation and welcome pack when joining out system.
This will help us when it comes to clients whom are not able to navigate a complex cms. If we make the cms to simple and old fashioned ( what clients generally are used to ) then we would have developed an outdated application in 2015 haha. Hence we want the best cms with modern features for the future, yet still need the old fashioned forms and simple structured date capturing clients are used to.
What you can help me with:
If i had a login, title and mobile number as the fields in my cms. The title had an ID named title and mobile number has an ID named Mobile. How can i do exactly what my friend did to login, and fill out forms then post the filled out form to my website cms that makes the post live. Please assist,:)
Kind regards
Basic solution will be using a webbrowser control with visibility=hidden. Now Just change the value of some elements and invoke submit(). If you can't understand i will explain in details.
I came across a curious question today, asked by my boss. Is it possible to track the clicks to pages inside an interactive PDF without it being embedded in a web page?
The client wants the user to download a PDF from his/her website and track what pages the user is clicking on inside the downloaded PDF.
After searching around on google for a while all I kept getting was links to pages telling you how to track PDF downloads.
Anyone who can shed some light on this or offer me a definitive yes or no to this question would be greatly appreciated.
The Javascript for Acrobat API Reference makes note of this event (page 368 of the API reference):
Page/Open
4.05
This event occurs whenever a new page is viewed by the user and after page
drawing for the page has occurred.
The target for this event is the Doc.
This event does not listen to the rc return code.
This would imply to me that you can hook this event and (assuming the end user permits the communication) send info to your web server every time they change pages.
Obviously this is limited to when the user is reading in Acrobat (Reader or Professional); it will not work if they are reading directly in Chrome or Firefox. And to re-emphasize, Acrobat will prompt the user to ask if it is allowed to communicate with an external website. If the user denies it, no tracking.
As it has already been stated, the PageOpen event would be the hook for tracking pages. But as this works only for (Acrobat) JavaScript enabled viewers, which at that moment have an internet connection available, those stats would be suboptimal.
We also have to point out that this kind of tracking is highly questionable from the point of view privacy (in Europe, this may even be illegal).
A little bit less questionable could be to chop up the document into single pages, add navigation links, and then use the server stats.
Hi I've used the shockwave flash com object to embed my flash file. I have buttons you can click on within the flash movie. Is it possible to get flash to notify my winform app which button has been pressed. It's developed using actionscript3. I'm using the latest vb.Net.
You can either use FSCommand, or use ExternalInterface. The later is better, although it may be harder to understand at first because of the format it uses, although if you've already solved the CallFunction (or SendFunction?) method argument, it's the same.
There are documentation and a sample C# project in Adobe's site, but I don't know the exact URL.
EDIT: To catch FSCommand and ExternalInterface calls there are two events you can subscribe to.
Also, you could also use sockets (either binary or XML).
That's a very open question as there would be many ways to do this depending on how your website and winforms applications are setup.
My initial suggestion would be to have your flash movie call some client side javascript on the button clicks. The javascript could post to a .Net SOAP webservice for instance which logs the button interaction to an associated database. Then your winforms application could finally check the database for the presence of new button click records.
This is just one high level suggestion based on the very high level question asked. If there's more specific information available then this can be refined.
Brian.