Quote:
Originally Posted by carlos
I'm a mexican developer and I'm trying to create an iPhone app that logs into a ASP.NET server which has an Microsoft Access Database and displays a TableView with the contents it returns from the Database. For the moment my question is this: How can I create a login screen with username and password to connect to the ASP server before it displays the TableView and its contents? I know how to create the view and the labels and stuff, but I don't know which code is needed to connect to ASP with the username and password the user provide in the TextFields so it can authenticate him. I've follow some tutorials here, but I'm trying to make the login screen that should appear first and then take me to the Table only if I have successfully logged in. Can you please help me?? Thanks!!
|
Quote:
Originally Posted by carlos
I'm a mexican developer and I'm trying to create an iPhone app that logs into a ASP.NET server which has an Microsoft Access Database and displays a TableView with the contents it returns from the Database. For the moment my question is this: How can I create a login screen with username and password to connect to the ASP server before it displays the TableView and its contents? I know how to create the view and the labels and stuff, but I don't know which code is needed to connect to ASP with the username and password the user provide in the TextFields so it can authenticate him. I've follow some tutorials here, but I'm trying to make the login screen that should appear first and then take me to the Table only if I have successfully logged in. Can you please help me?? Thanks!!
|
Not sure I understand...
If you access the server from the web, wouldn't the server present a login screen before it allows access to the site?
If so, the easiest way for you to access the site from the iPhone using an UIWebView.
That way, you can access the web site (with its login) within your app (not leaving the app to go to safari).
Or, If you know what the web site expects, you can generate the http requests within the app after the user enters userID, password into a view that you provide. Have a look at NSURLRequest in the docs to see how to interface the server,
HTH
Dick
Y, andele!