Reputation: 547
Essentially, I need for my ASP.NET application to programmatically fill out a web form on another website for my users and then display that website to them. There are no other requirements, so I am open to any suggestions for making this happen.
Is this even possible?
It can be using ASP.NET MVC or WebForms.
Upvotes: 0
Views: 140
Reputation: 239200
No, this is technically not possible. Form fields values may only be set either explicitly in the HTML or via JavaScript. Filling out a third-party form would not allow modifications to HTML (which is generated by the third-party) and any JavaScript solution would require that third-party running your JavaScript, which you obviously cannot force them to do.
You could perhaps embed the site in a frame within your site, which would then allow you to run JS on your site that could manipulate the site in the frame. However, this would require that the third-party allows their site to be framed in the first place and that they do not employ a Content Security Policy that would prevent your JS from running against their site. What you would be doing is basically an exploit, and if they have any reasonable security in place, it won't work because of that.
Upvotes: 2