open webpage in silverlight web application - c#

I'm working on the silverlight web application. i need to implement the google map so i prepare the one webpage in that i write almost code to load the google map and it work fine. now i want to open this page inside the silverlight.
i try to implement the browser control but there is limitation of
browser control that we can't use the browser control in siliverlight
web application.
is there any way to achieve this?
OR
is there any other way to implement the google map into silverlight web application.

You can do this by using telerik RadHtmlPlaceHolder control, that can load .aspx, .html pages.
You just need to create a .aspx file that will load Google Maps using javascript api and call that .aspx file from silverlight telerik RadHtmlPlaceHolder.
Have a look for telerik RadHtmlPlaceHolder control
http://www.telerik.com/products/silverlight/htmlplaceholder.aspx

Related

Open another webpage, logging in through code Asp.Net MVC

I want to be able to login to an external domain webpage through code, and give the resultant page to user.
Tried using HttpWebRequest,
The user agent that makes the request must support JavaScript. The HttpWebRequest doesn’t support JavaScript.
Also found some suggestions about using WebBrowser Control, but that is for Forms apps.
Need some solution for ASP.NET MVC.

Passing C# class to javascript (no web server)

I am writing a desktop application in C# and would like to pass data from C# to an HTML 5 panel (javascript or jquery). I am using CefSharp which embeds Chromium into the application, it successfully loads data from a file with no web server, I have this up and running to display Processing sketches locally within the application (desktop).
The solution I am looking for can't use or require a web server, it has to operate locally. The HTML 5 (CefSharp) browser panel is hosted by the application and does not allow users to navigate to web pages. Its only purpose is to visualise and display data the software generates.
Ideally I would like to do something like the following:
Data in C# ----> (possibly) JSON object ----> object available in embedded browser
The browser has an instance of jQuery if that helps. I'd be grateful if you a small code sample can be provided, it has to operate without a web server and preferably without dumping the C# data to a file which is then loaded by the embedded browser. I want to pass data directly from C# to the embedded browser and have it available for processing.
Any ideas?
References:
https://github.com/chillitom/CefSharp

Unsupported Web Browser

I am trying to make a simple application with a web browser that will log me into www.icloud.com. and display the page on a Windows form. When I launch the application and try to load the page it tells me the browser is not supported. I have tried using the GeckoFX method and one other I can't remember off hand with no avail. I think the reason for the unsupported browser is due to plugins, but I am not sure. I am new to importing web browser functionality into an application so any help would be great! Thanks!
~Chris.

Asp.net c# web application on phonegap

i'm developing a web application using asp.net and c#, this application must be available on almost wp7.5 and android. I wanted to use phonegap to solve this problem but how can i use .aspx pages on it? It only supports HTML pages, not server side pages.
You can't.
PhoneGap allows you to use client side web technologies (HTML, Javascript & CSS) to build a native app.
It won't, and isn't designed to, work with server side technologies
You can only access aspx pages via html requests (get, post, ajax) on html and parse and show data that comes from aspx page.

Sharepoint - Integrate c# application

iam new to sharepoint. I have an application created in C#. Now i have to upload to sharepoint portal server and need to create a link in documents tab which will open this application.
If you are simply trying to show the contents of one web page inside of SharePoint then you can use a "Content Editor Web Part". You set the URL of the web part and the web page is displayed inside of an iFrame on your SharePoint page.
If you have an existing C# solution, you could either put that inside a web part or create an application page for it: http://msdn.microsoft.com/en-us/library/ee231581.aspx

Categories