Is it possible to see silverlight based pages without the silverlight plug in - silverlight-3.0

I have an asp.net application in which I have built few silverlight based pages.
The problem is that most of our users do not have install priviledges on their system and they cannot install Silverlight plug-in themselves. Our IT Support will not agree installing Silverlight on all 4000 machines.
Is their something we can do so that users may not be asked to install the Silverlight plug-in and still the Silverlight pages being displayed to them.
Is there a workaround ?

If the client cannot render the silverlight, then it just renders whatever is inside of the object tag. In your case, instead of a "get silverlight" link, this could be a non interactive version of your page.

The workaround is to not use Silverlight for browsers that don't have the Silverlight plugin. There are ways to detect Silverlight server-side (although they're mostly hacks). If you detect Silverlight, push down a Silverlight-enabled page. If you do not detect Silverlight, push down plain HTML and/or AJAX.

No, you need either Silverlight on Windows or Mac, or Moonlight on Linux to run Silverlight applications.

On the off chance that your Silverlight pages are simple, IE will render a XAML page. Of course, this will only work with the simplest content, and it would be non-compiled xaml, like an HTML page. If you save the following example as "whatever.xaml" and browse to it, it will render in IE.
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid x:Name="LayoutRoot" Background="Orange">
<TextBlock>Alex</TextBlock>
</Grid>
</UserControl>

Related

MAUI Blazor - Use Webview as component

I have a MAUI .NET6 application with blazor pages and components, and I would like to display a kind of web browser inside a page, in order to display some internet content.
I tried to use the BlazorWebView, but I couldn't figure out how to use a XAML component inside a blazor component.
For now I have an iframe, but some internet content is blocked. I would like to have like a real browser.
Have you some ideas how to achieve this ?
You cannot embed XAML inside of Razor pages. Whenever you are inside of a BlazorWebView you will need to find a "web way" to fix whatever you're doing. So that would indeed be an iframe or something like that.
Another way around it would be to navigate to a .NET MAUI native page and show a WebView on that, but seeing how you describe things, that is not what you want.

Mobile compatible website template for masterpage

I have been looking all over for templates that are mobile compatible. I understand that people carry the web with them. My present website uses an old css template which does not work well in phones. I found a template here at https://html5up.net/photon
I downloaded this, but I'm having problems integrating it into a masterpage. It is a html page with links to images that are not working. Where can I get a basic masterpage for vb.net that is mobile compatible? It needs to have a nav bar. Thanks.

WebBrowser inside Asp.net mvc website

I have an asp.net mvc website and inside a page, I would like to have a WebBrowser to browse other sites.
Is it possible ? OR at least to display a single external Webpage without leaving my page...
If yes, what is the best way to do it ?
ASP.NET MVC is an Web Project. not a native Application.
If you want to insert a WebBrowser, use Iframe tag in view page.
<iframe src="http://somewebsite.com/path/to/show" width="100" height="100"></iframe>

jQueryMobile / bootstrap / both

Today we got one version of the system for desktop and we got one version with jQueryMobile.
The goal is to only have one system/page for desktop, tablets and mobiles.
I know that bootstrap is a good css/js framework and it is responsive. That will soulve the todays problem with the desktop version of our system.
As I said we have one mobile version as well. But today it gives us some "double work". And it is made in webforms.
My thought was to use bootstrap for both desktop and mobile. But my boss like jQuerymobile look and functionality.
We belive that our main users will be mobile/tablet users. So the best solution will perhaps be to remake the jquerymobile page and build it with MVC?
The main content of the system is for eployees to check their scheme, accept work-suggestions from their bosses and so on... This is in a calender.
There will be some more functionality in this calendar futher on.
Ofc there is some other stuff in the system but this calendar is the biggest.
My question is what direction we will go with this. The goal is to have one page/system for both mobile and desktop users.
If you are using JqueryMobile, I normally use another kind of windows events, but i have tried those events in normal pc browser and they tend to work okay. So why dont you build the system base on jquery mobile and just change the layout depending on who is making the request with a agent request.

At some point for a mobile browser the desktop version will be returned

We have a site that runs on ASP.NET MVC4 RC1. Depending on the client it renders index.aspx or index.mobile.aspx.
This works smoothely until some point in time when for some pages the desktop version is rendered. Even setting a cookie .ASPXbrowseroverride which usually forces the mobile view to be rendered still renders the desktop version.
The behaviour can be resetted to normal by restarting the app / touching web.config.
This all looks like some issue with caching or static variables in the implementation of the mobile feature in ASP.NET MVC4. Is there anything I can do about it?
We use fiftyoneMobile, but the issue is the same when we dont use it.
We dont have OutputCache enabled and use Webforms viewengine.
the issue is known, ist a Bug in MVC4 RC. Here u can find a description of the issue and a answer how to workaround this bug.
http://forums.asp.net/t/1824033.aspx/2/10?MVC+4+RC+Mobile+View+Cache+bug+
Here the link to the work item at codeplex:
http://aspnetwebstack.codeplex.com/workitem/280
Greetz

Resources