Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9216987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:32:19+00:00 2026-06-18T02:32:19+00:00

Ok guys, so I am new to iOS programming. Im trying to build a

  • 0

Ok guys, so I am new to iOS programming.

Im trying to build a VERY SIMPLE WebView iOS App that loads an External URL and all the Javascript (@external server too) associated with it.

The following code loads the page perfectly but when I click on the “Login” button, the Javascript it calls doesnt seem to do anything.

- (void)loadView
{
    self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
    UIWebView *webView =[[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
    webView.scalesPageToFit = YES;
    [[self view] addSubview:webView];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://mywebsitehere.com/mob/"
                                                       ]]];
}

This is the code for the Login button in the external HTML file:

<a id="btnLogin" data-role="button" data-icon="star" href="javascript:__doPostBack(&#39;btnLogin&#39;,&#39;&#39;)"><span>Login</span></a>

I have also tried using different PhoneGap/Cordova/ChildBrowser tutorials and everything seems very outdated/not working.

If possible, I also need GeoLocation (web page requests current position for certain features).
I basically just need it to work exactly as it does in Safari.

Please Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:32:20+00:00Added an answer on June 18, 2026 at 2:32 am

    After doing extensive research, I found out that UIWebView’s User-Agent is not properly recognized by ASP.NET. This causes authentication issues with ASP.NET applications.

    NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"User Agent Here", @"UserAgent", nil];
    [[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];  
    

    After changing the user-agent the authentication process worked successfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an ios app that's very basic and uses objective almost all of
Somewhat new to ios programming. Trying to use AVQueuePlayer and playing multiple videos in
I am quite new to iOS development and trying hard to develop an App.
First, let me say that I'm pretty new to Objective-C and iOS programming in
I'm pretty new to iOS animations, I've been trying to accomplish something that in
I am very new to iOS development. I am developing an app, currently i
I am very new to iOS App Development . In my app I am
I'm new to iOS development and am working on this app that has a
Guys i am very new to jQuery. I have started using the auto complete
Ok guys, I'm really new at python (and programming itself) so sorry for my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.