Launch IE from metro app and send post data to the website - c#

I want to launch a website in IE from my metro app. While launching the website post data also need to be send.
I tried using Windows.System.Launcher.LaunchUriAsync(uri);
I am facing two issues here.
one, i am not able to send post data to the website. Second, the IE is taking only 50% of the screen. I want it to consume the entire screen.
How can i possibly do that?

Related

Uploading 100s of images from Android Tablet using C# web application

I'm sure I'll have plenty of questions concerning this new project.
I'd like to create a web application that will give a user the ability to select say 100+ photos from an Android tablet photo gallery. I want them to be able to start the upload and if they leave the application and come back be able to start where they left off. For instance, select images, click submit, upload 10 out of 100 images, log off, log back in, and start uploading the rest of the images.
Is there a way to do this?
The things I'm not sure about is the location of the images on the Android tablet, whether the images saved on the Android is always in the same location, whether I can access the images without some sort of post (the returning to the upload page after leaving).
Do you have any experience with this or any suggestions?

Print Screen of Current Webpage Screen using wcf( not using url )

I want to take a screen shot of current screen(print screen of current screen as an image) using WCF service.
I have googled code and I found some code (like memoryGraphics.CopyFromScreen ) and that is fine working in my local machine. but when I hosted on IIS server then it gives me an error that there is no screen on the server .
so is there any way to get a screenshot of a current web page as an image
Note:
I can not use http://html2canvas.hertzen.com/ or any other tool which accept URL because my web page URL is same ...data is a render from jQuery.
So without passing URL I want a screen shot of current web page.
In order to take a screenshot of a desktop, the executable taking this screenshot must be running on the target device.
In your tests the executable (WCF service) is running on the webserver and will attempt to take a screenshot of the webserver when you execute it, not the client performing the WCF request.
You are left with a few options (that I can think of at the moment):
1) Use an application that can be installed on the client to perform the screenshot, and send the screenshot data to the WCF service. This can be either a straight forward EXE with installer. To make the user experience easy for the user it could be a ClickOnce deployment (http://www.codeproject.com/Articles/17003/ClickOnce-Quick-steps-to-Deploy-Install-and-Update)
2) Use some sort of plugin designed for the target browser. Same rules apply, it runs on the client, takes the screenshot and sends the screenshot to the WCF service. Probably a lot of work here to work with many browsers.
3) If you only want to take a screenshot of a web page from an application you own and modify the source of then you could write some javascript that essentially sends the current state of the DOM of the document to a WCF service and the service could then render the DOM on a kind of virtual browser. E.g PhantomJS (http://phantomjs.org/), or Awesomium (http://www.awesomium.com/). Then save the rendered output.

zxing scan from website returns to new window

This is most likely a browser issue, but I have a mobile website that I launch the zxing app from, passing in a callback URL. Everything scans fine and returns the scanned data as I expect.
However, instead of the URL returning to the "same" window/tab/etc in the browser on the phone, a new window is opened with the URL.
Any thoughts on how to get it to return to the same window that launched the scanner?
BTW - This is a jquery mobile site build with asp.net MVC 3, and I'm using the default android (4.0.4) browser.
The only solution to this was to create an android app that used the built in webclient. When someone on the app clicked the scan button on the website, it would talk back to the app itself through javascript and launch the scanner. The scanner had no idea it was called from the website. It sent the data back to the app, which used javscript to pushed that back to the website. This way, only one "tab" is ever open because it's how the app work.
Edit: Of course that was almost 6 years ago, and I have no idea what all has changed since then.

Windows Form application run on Windows hosting service

I've created a Windows Forms application that basically contains an HttpListener which launch a Form for each request. I have to show forms server side because I have to take a snapshot of what it's shown on the screen to send it to the client.
I've also made a asp.net web application in which I show those images sent from the HttpListener who act as a server.
Everything works fine on my machine but now that I must deploy it on my company's website I dont know how to do it, anyone has a solution? I haven't remote control on server, I can just upload files inside using FTP.
What if I create a page inside my web application to launch the exe file? Any suggestion is really welcome!
I'm definitely no OpenGL expert but I believe that its possible to use OpenGL to render a scene without displaying it to a screen. Some preliminary research indicates that "pbuffers" allow you to render an image to a texture (which would presumably then allow for programatic access).
Can i save an OpenGL scene as an image without showing it?
Note that using OpenGL probably depends on the server machine having a suitable graphics card. As most servers don't come with very capable graphics card (some servers don't come with any graphics card) this is definitely something that you should check beforehand.

Use windows and asp concurrently

Can we add a windows form in an asp web page.
Like if someone click on a button on web page(.aspx) user receive a windows form (.cs)
and then again switch to each other.
It cannot be done.
The closest thing to do this would be to use Silverlight embedded in the browser.
No there is not any way to do this. Your only option would be for the user to click a link, download an .exe and then have the user launch the application.
The reason for this is that Windows Forms are designed to run on Windows, and run with a different permission set. As such, a web application first of all could be running on a non-windows platform, and secondly, does not have the ability to actually launch an application on the users machine.
In short, no this cannot be done.
You can't embed a windows form application in a webpage.
RIA (Rich Internet Applications) are what HTML 5 is about, and currently flash and silverlight are the closes things to what you are looking for.
As #Mitchel Sellers mentions, you can always link to an exe, save it and execute the downloaded file, but this is far from seamless.
Even if you did add some windows form UI (for eg a message box) to your asp.net application it will only be fired on your web server.. no client will ever get it on their side
I'm not exactly sure why would you need this? But the closest you can get to this is like "Mikael Svenson" said, Silverlight..

Categories

Resources