winforms-to-web

Communication between a desktop application and a web application

蓝咒 提交于 2019-12-12 12:19:25
问题 I have a desktop and web application connected to same database. Which is the most preferred method to make them communicate with each other? 回答1: You should use SOA and then both your desktop app and web app should communicate with the Service. And the Service will be responsible for communicating with the database. 来源: https://stackoverflow.com/questions/4436388/communication-between-a-desktop-application-and-a-web-application

Provide AntiForgery Token with System.Net.Http.HttpClient and MVC

爱⌒轻易说出口 提交于 2019-12-11 09:38:47
问题 I have a WPF (could be any winform I guess) app that tries to login to a standard MVC 5 website using a HttpClient . Normally I can login successfully with a call to PostAsync() where I provide the UserName and Password params in a HttpContent ! However, when I add the [ValidateAntiForgeryToken] to my controller's Login (POST) action, the PostAsync() call fails with Internal Server Error. I have tried collecting the "__RequestVerificationToken" from a simple GET request and sending it with my

VB.NET - Easiest way to Export / Convert WinForm App to Web ASP.NET App

天涯浪子 提交于 2019-12-11 03:12:10
问题 Background: I have a winform application written in VB.NET that uses a WebService to send out different invitations to users based on the marketing company they select to take different interviews. The winform app is pulling string values from a variety of textboxes, listboxes, and dropdownlists to create some XML and push it to a web service called AcompServiceClient Questions: Is there a wizard or 3rd party application that will export winform data to webform asp.net or should I build an

How to set user agent in GeckoFX?

强颜欢笑 提交于 2019-11-30 15:35:37
After using the webbrowser control for some time, I decided to give gecko a try, because of the webbrowser's problems that I've experienced, low speed and degrading performance. I downloaded the latest version of geckofx (16.0.0.2) and xulrunner(16.0.2) and created a geckoWebbrowser control. When I tried to navigate to a webpage I got a javascript.alert that my web browser is not supported and that I should use firefox>2.0.0.2 which of course is ridiculous. The problem was - I assume - that the detected useragent string was "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/ /16.0" instead of

How to set user agent in GeckoFX?

前提是你 提交于 2019-11-29 21:56:28
问题 After using the webbrowser control for some time, I decided to give gecko a try, because of the webbrowser's problems that I've experienced, low speed and degrading performance. I downloaded the latest version of geckofx (16.0.0.2) and xulrunner(16.0.2) and created a geckoWebbrowser control. When I tried to navigate to a webpage I got a javascript.alert that my web browser is not supported and that I should use firefox>2.0.0.2 which of course is ridiculous. The problem was - I assume - that