Navigation between two web applications within a single solution file in asp.net - asp.net-3.5

My project have two web application in a single solution file. First web application is based on old architecture and second one is on new architecture. slowly and gradually we are shifting our old application on new architecture.
Now, I am facing a problem while navigating from a page say "Form1.aspx" of first web app to "newForm1.aspx" of second web app.

In Form1.aspx of the first web app, add a redirect to newForm1.aspx of the second web app. I'm not sure of the best position for this, probably in OnInit.
Page.Response.Redirect("newForm1.aspx");

I think the problem you're having is that the old web app and the new web app will reside in different virtual directories, so the new web app has no knowledge of where "newForm1.aspx" is because this is a page within the virtual directory of the old web app.
The solution is to ensure that your redirect is prefixed with the old web app's full path:
Response.Redirect("http://oldwebapp/newForm1.aspx");

Related

Can I build a progressive web app showing a website which is not my own?

I am currently creating a chrome-extension, which re-styles a website(not my own). I would also like to create a progressive web app, which can be downloaded from my site, where people can view this third party website, but with my custom CSS and JavaScript. Is this possible to build?
Regards
Benjamin
No you can't. Manifest and service worker file should be present in the actual websites location along with other PWA features. You can fake it with an PWA app frame having iframe. But due to cross origin requests, that wont help you build a PWA for 3rd party either.

Is possible to combine rest-api and angular profiles on Grails?

I'm going to start a new project that has two front ends, a mobile APP and a Web Application.
I was thinking about creating a "rest-api" grails application and consume this "api" from the mobile apps.
But, for the WebApp, is it possible to create a new "angular" Grails app that uses as model the previously generated "rest-api" Grails application and ovoids me to "re-implement the wheel (model)"?
Any articles/documentation how that could be accomplish?
Thanks in advance.
JD Evora
You can use the domain you already have in the new rest api, nothing changes. You may want to add the #Resource annotations.
If there is another app that uses this same domain, I would put in a plugin(as #Joshua suggested), we currently do it for clients which have both admin/cms and final user applications.
In our company,we are currently developing 3 projects with an idea I believe will fit well to your needs, or may help someone else who is starting a similar project
We organized the apps this way:
We've created a grails app with rest-api profile
We've created a grunt/bower/npm project(you could use yoo angular generator, but It had more than we needed)
We've created an android and and ios apps
Advantages we've seen:
The angular application calls the same methods as the mobile apps, there is only one controller, one service, one grails app
The web apps is pure JS and CSS and runs smoothly in the serve(npm
install serve)
You can deploy the web app in any CDN like Amazon Cloud Front and be able to handle a big demand, and you can deploy it quickly
Just in case you don't know, but with grunt and bower you can replace assets pipeline automation.
Hope it helps you!

one application registered with two ICON on IPhone?

Our customer has a particular request for my project.
how to use short-cut to launch our application?
what I am trying to do is create an standalone application does nothing except to launch my main application to skip some step go to more depth level?
maybe one application is registered with two icons, one is for main process, one is to do short-cut process.
is that possible?
I have searched this site, someone mentioned to create an application to launch another application? is there an example or a piece of code?
Thanks in advanced.
This is probably technically feasible with a custom url schemes, but I doubt that Apple would approve the "shortcut" app for release in the App store.

Is PhoneGap on iPhone pointed to local proxy possible and allowed?

We are looking on building a project that would run on Android, iPhone and other platforms with Phonegap. The app would be fairly simply, making use of the camera and basic UI features. The first versions would simply point to a web service and load information from there.
Over time, however, we want to improve the speed by:
1.) Downloading content via a separate thread when the app is running and storing the results in a local database,
2.) Hosting a mini webserver in the app*, and
3.) Pointing the PhoneGap UI to the app's mini webserver instead of the service's external webserver.
Two questions:
1.) Is it technically possible to host a mini webserver in iPhone that the app will access?
2.) Would this functionality be rejected by Apple?
Thanks in advance.
*I realize this step probably isn't really necessary. But, if it enables to truly build a "write-once-run-anywhere" UI, it might make sense still.
You're much more likely to want to have the HTML for presentation generated on your actual server, downloaded and stored by your separate thread as an .html file on the iPhone filesystem and served through local URLs using PhoneGap. Essentially, an advanced cache.
This way no web-server is necessary and you only need to write the UI generation code once on the server.

iPhone Web Appication deployment and distribution process

--I haven't develop any iPhone Web Application ever...so i am little bit confuse about that.
--I want to build a Web Application for iPhone which will be made using(CSS+JavaScript).
--I read some where that no approval is required for iPhone Web Application.
is it correct ?
--And if i have made my iPhone Web Application (using CSS+JavaScript)and uploaded at my server.
--and if i want to open it in UIWebView using iPhone SDK simply...
--is this Application is valid for iPhone Web Application portal https://adcweb.apple.com/iphone/index.php or not ?
--how can end users get the Application on their iPhone after submiting to the portal...
--can any one explain me the whole process of iPhone Web Application deployment and distribution process ?
Thanks in advance...
iPhone (and others) have support for "stand alone" web apps. These are web apps that are designed to work offline. These applications are hosted on the web, but along with the application is a manifest file that describes all of the resources that the application will need. These resources are all downloaded to the device.
On the iPhone, to "install" one of these applications, you need to simply bookmark it. When you bookmark the app, the phone asks if you want an icon for it in the standard app area, vs just a bookmark in the browser.
Once bookmarked, the user can simply tap on the icon like any other application. This will launch safari for your application, and it starts using its local resource. There's no reason a standalone application that never touches the internet can't be written. The Safari Reference Library has a lot of information on this.
If you'r building a web application, we talk about something, that does not need to be installed on the iPhone, because it runs inside the browser. So yes, you don't have to go through the approval process, it's just a website optimized for the iPhone. The submission you linked to in your question is to get listed at apple with your web application (I'm not sure about the guidelines for that), it,s not a submission for the app store. You don't have to (and you should not) make use of the SDK by using UIWebView, because that would mean to build an native application which needs approval, has to be installed etc. If your goal is or can reached by building a web application, all the user needs is safari.
You do not need approval for a web application. The iPhone can view any web page through its browser (as long as there's no flash), so just implement your application as you normally would, but design for the smaller screen. The submission form is just for listing in portals (I don't know which portals).
If you want to make a native iPhone application that talks to the server, then you need to sign up for a developer account and develop the application in Objective-C (with the help of UIWebViews, which are essentially embedded browser windows). That will require approval.
What about a web application that needs to be installed. By that I mean an application that consists of a web page (with embedded CSS and Javascript) that uses HTML5's localStorage to work offline. You still need to be able to access the page itself if you lost the connection, i.e. the page needs to be stored locally, because once you are offline, you can't access it from a server outside...