Hosting a WebBrowser control in aWeb Page - html

i am following the below mentioned tutorials to create a custom Windows forms control library. I am able to host the control in a html page and test it for the given label.text change examples.
http://weblogs.asp.net/spano/archive/2007/09/19/hosting-a-windows-form-control-in-a-web-page.aspx
http://www.codeguru.com/csharp/.net/net_general/internet/article.php/c19639/Hosting-NET-Windows-Forms-Controls-in-IE.htm
However when I use a WebBrowser control in the custom user control, it works in Windows forms application but doesnt even load in a html page, even though I am following the exact procedure as in the example.
How can we have a user control having WebBrowser control be hosted in a HTML page?
Thanks,
Anil

Related

Is there a way to access the HTML of an In App Browser (Themeable Browser)

I am using the ionic framework and would like to be able to read from the HTML from the current webpage and then send the selection back to my application.
I have the Theme-able Browser Plugin setup and can use it like any other web browser.
I have tried looking at ways to include my own script with the .executeScript() function but no luck.
I have also tried to read data from custom buttons that I have inserted into the tool/nav bar but that gives me the HTML of my application.
TL;DR: (Basically want access to the DOM of the current webpage and have the user use native selection to read the document.getSelection() and send that text back to my application.)
Any help would be highly appreciated.
After browsing the forums on Ionic I found the solution:
browser.executeScript({code:'window.getSelection().toString();'}).then((selection)=>{
packet.text = selection[0];});
This allows me to get the selection.

SSRS report viewer for HTML5

We are using a web application in html5 and I want to integrate the developed ssrs reports into it. I want to create a report viewer for displaying the reports in my web application. I do not want to use .aspx page or any mvc page. I want the report viewer in html5.
Thanks in advance
Correct me if I'm wrong, but it sounds to me as if you are requesting that Microsoft add a .NET library or some "embeddable control" that you can put into an html5 project. Currently, I do not believe that there is a control for displaying the reports in html5 as you are requesting. You must use a work around as suggested by Coder of Code.
You can also look to these threads which basically say the same thing:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/7613447b-3590-4494-a94a-498af49f85dc/does-ssrs-2012-support-html5-and-dynamic-position
If you are just trying to show the HTML render of a report and you want it to look like a native object to the application without any parameters or toolbar, then you could call the URL for the report directly and include "&rc:Toolbar=false" in the URL. This will hide the toolbar for the Report Viewer control. This method is described under the URL Access Parameter Reference msdn article. Not exactly what you asked for, but it may achieve the purpose.
You can use the Reporting server's URL for your report as it returns the data in the HTML format and show that that in the IFrame in HTML. I never did it but this approach can work by setting the Iframes URL as the reporting servers URL which will be something like this,
http://ServerName/ReportServer?%2fSome+Folder%2fSome+Report+Name&rs:Command=Render&rc:Toolbar=false&rc:HTMLFragment=true

How to Include ASPX page in ASP.NET User Control

Is it possible how to include ASPX page in ASP.NET User Control?
I have use ajax modal popup extender in asp.net user control.in that place update panel not accept while i am running my program. It throws the error below:
Microsoft Jscript runtime error:'Sys.Extended.UI' is nul or not a object
but when I am using the same update panel in my ASPX page it works fine.
Can any one tell me how to solve this problem?
I think you misunderstand how to use an ASP.NET User Control. User Controls typically don't include a full page HTML markup since they are used for embedding in ASP.NET pages. If you try to embed a full ASP.NET page in another full ASP.NET page without an iframe, you will have page rendering issues since the DOM parser won't know how to process the page content.
http://www.codeproject.com/Articles/1739/User-controls-in-ASP-NET

how to use html to style a vb.net desktop application?

I'm not trying to do ASP.NET using VB.NET applications on the desktop. I want to create a desktop application that the user can enter information and retrieve information form a interface that is styled by html, css and java script. I'm NOT trying to interact with a web page at all, i simply want to make the desktop app look and act like a web app because a similar application will be available on the web this will just be like an offline version of it.
You could use the WebBrowser control and set it's DocumentText property to the source code of a web page or set it's DocumentStream to an IOStream of a local copy of your website. You can also use the ObjectForScripting property to exchange data between the vb.net application an the web page.

Salesforce.com - Visualforce and ActiveX

I have a Visualforce page through which I am trying to access a SDK. It is done using ActiveX control. The VB + JS script that I have runs fine when it is a normal HTML page residing on my desktop. However the same code when incorporated in Visualforce does not work. Does running ActiveX control require uploading any kind of files to Static Resource? My code need not be a Visualforce. If there is any other way I could integrate ActiveX with Salesforce, even that would be fine.
Thanks in Advance.
If you need somewhere to host the .cab (or .ocx) file, then you can put that in a static resource, and reference that from your VF code.
What browser are you using to test? If IE6 it may need you to enable the ActiveX controls.
If you go to Tools->Internet Options->Security Tab. Click ‘Custom’ and OK any message. Then scroll down to ‘Script Active X Controls ….’. This should be enabled.'