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.
Related
I have React TypeScript application (ASP.NET MVC Core 2.0 Server side).
Users can write html messages and post them on site.
On server side I sanitize and repair posted html to render on client side.
But if there is local links like link, targeted my React navigation components, if user clicks this link, whole site is refreshed(rerendered), but I need to act as React Link just to handle link inside React, not to rerender whole site.
How can I convert A link to React Link (on server and/or on client)?
May be there is something like PrepairLink function on client?
Can we create a Angular Js application in ASPX web forms using three tier architecture (Database Layer,Business Layer)?
Yes you can in simple Aspx using Web APi or Web Service...
You have to create a new .aspx page (with masterpage if you want) and follow the same approach of a classic Web Form Application (obviously without postback)
include WebAPI for managing the ajax requests or use httphandler with json response format or a WCF service ecc. I don't know your needs...
I want to be able to download the html contents of my page from a client after receiving a post request (XMLHttpRequest and doing some processing. Is there a setting I must enable for this to be possible? I've tried enabling COORS via
Response.AddHeader("Access-Control-Allow-Origin", "*");
with no success. Has anyone found a solution to this problem?
Update: I am using ASP.NET Web Forms (with NET 4.5)
Well, I think the CORS stuff is for cross origin scripting - to enable JavaScript calls to a domain different than the original request. As far as getting the HTML contents, I believe you mean to get the response of the web server as it is posted back to the client. Not knowing what technology you have used (i.e., MVC, ASPX, etc.) you may want to look into interceptors. They differ depending on the technology. For ASPX, check out....
http://www.codeproject.com/Articles/30907/The-Two-Interceptors-HttpModule-and-HttpHandlers
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
A while ago I created an ASP.NET MVC Web Application for android devices. The application also used jQuery mobile to set up navigation etc.
At the moment, the application is simply being hosted and the androids webview accesses it that way.
The application works as expected, but I was wondering, is it possible to store the MVC web-app on the phone/integrate it into the apk?
I would like to be able to have it run the web-pages while the device is offline. I know it is possible to run simple HTML in the webview but I haven't been able to find anything about something like an ASP.NET MVC web-app. Is this done using phonegap?
Thanks.
I don't think you can do it directly with PhoneGap, from the PhoneGap FAQ
Q: Can you use PHP/ASP/JSF/Java/.NET with PhoneGap?
A: A PhoneGap application may only use HTML, CSS, and JavaScript.
However, you can make use of network protocols (XmlHTTPRequest, Web Sockets,
etc) to easily communicate with backend services written in any language.
This allows your PhoneGap app to remotely access existing business processes
while the device is connected to the Internet.
So if you are going the PhoneGap route, you'll have to write it in HTML/CSS/JavaScript. However if you more comfortable in .NET and C# then there is always Xamarin Android which has a free starter version that you can try out. Do realize though that if you go that route it will be a mobile app and not a wrapped ASP.NET app.
If I understand correctly I think what you want to do is serve your data via a web service (MVC4 web api is pretty simple to setup). Then you'd consume that data with your android app and you could more easily cache that data for offline use.