Web Forms :: Login Form - Storing Password?


I am using web (asp.net 3.5). c#In my login form i accept username and password.what is best way of fecthing username and password from user and saving in sqlserver in terms of security .Is encription and decription only way? then how do i implement it?

View Answers
Very similar questions


Call ALTER LOGIN forums.asp.net

I am trying to create a stored procedure to Call ALTER LOGIN based on the the username passed in. However, the Alter login statement chokes on any parameter. Is there a way I can alter sql logins from a web form ?  I try the following and it bombs   ALTER LOGIN @LoginName WITH PASSWORD = @Password  But this works ALTER LOGIN 'TestUser' WITH PASSWORD = '123test'  I guess the alter login statement does not work with Parameters.  Any thoughts ?

Simply Login Help!(vb) www.xtremevbtalk.com

Hi, i'm here and wish some help.I need to create a simple login ( not connected to database or whatever), using two forms, one for login, one for register. When someone register, the password is store in say array, then close and return to the login form. The user can login if the password define in the register form is the same as the one type in login form. Please help!Thank in advance

Controling A Web Page With VB www.vbforums.com

Hi All,I have a program that opens a web site OpenError = ShellExecute(0&, "Open", tvTreeView.SelectedItem.Text, "", "", vbNormalFocus)In this web page is a login button (control).When this button is selected a login form pops up.I would like to be able to select this login button (using VB) And when the login form appears, check the form name (to make sure I have the right form) and then enter a name and password and finally select ENTER to log in.I could use SendKey instructions, but I thought there might be a better way.Thanks

Security :: Authentication Mode On Webconfig? forums.asp.net

I have an ASP.net website running with the authentication mode on the web.config file is Windows. The webpages at the root do not need to have login & password form. Now I created a subfolder called 'reports' and would like to implement a few web pages with the login & password authentication form. Question, do I need to create another web.config file in the 'reports' folder and update the authentication mode="Forms"?

Can 2 Project Website Use Same Session www.vbforums.com

My web will call some form from my friend. i want to ask,can my friend use session in my project?? because when login, i store some username and password in session. but when we publish,when my form redirect to his form, it not return session in his form. i want to ask you all,is this possible 2 web application share session? i think it possible because still in one browser.

Reading Values In Seperate Form www.vbcity.com

Hello all! I want to first thank you for your time in advance whether a reply is given or not!I am working on a project in VB6, I have create a login password form in which I have an OK button which if login and pass word is correct (stored in access) it goes to the Main Form as well as a Change Password button which enables the user to change the password. I have the Change Password form that has a label that shows the value from the textbox from the login page that when the users login is entered, but when i try to have that same function work on the Main form it doesnt work, the label on the Main form shows blank.This is the Function I am using...this is in the Login form (when the program runs)Public Function ShowLogIn() As StringShowLogIn = frmUser.txtUsername.TextEnd FunctionAnd this is the code that is in the Sub Form Load() that enables the label to show what the user enters in the Login textbox (which I am trying to get to show up in two different forms and only the one works)Private Sub Form_Load()lblName = frmUser.ShowLogIn()End SubThanks again!! Kudos!

C# - How To Set Login Control To Compare The Credentials Stored In Web.config stackoverflow.com

I have set my credential in web.config as : <authentication mode="Forms"> <forms loginUrl="Login.aspx" name=".ASPNETAUTH" protection="None" path="/" timeout="20"> <credentials passwordFormat="MD5"> <user name="Nayeem" password="pwd"></user> </credentials> </forms> </authentication> <authorization> <deny users="?"/> </authorization> and have my login control as : <asp:Login ID="LoginEmployees" runat="server"/> I want my login control to authenticate with the credentials given in the web.config file

.NET Forms Authentication Authenticates In Localhost Server, But Not On The Web Server? stackoverflow.com

I've been implementing the Forms Authentication in ASP.NET with C# (v3.5).I created a simple login form, when the users' email & passwords are stored in my SQL db.When I login in my localhost, everything works just fine, but when I published the project and uploaded it on to my production web server, things got a little bit wierd for me.The ttpContentxt.Current.User.Identity.IsAuthenticated variable return false, even if the login was successfull (and again, in localhost everything works fine).

How To Login On A Website And Access Another Page Maintaining The Session forums.asp.net

Have a project where I need to access a RSS feed. The issue is this RSS feed, you need to be logged in as a user. They have a simple web form (login + password). 1) Post a web form with my login and password 2) Maintaining Session (w/successful login), do an additiional GET to retrieve the RSS feed. I am doing this in an ASP.Net page so it all happens server side in VB.Net

Get A Password Form To Login Into Another Form? social.msdn.microsoft.com

I'm trying to get a password form to login into another form but ever time i hit the complie button it just goes to my main form rather then the login first,

How To Modify Web.config File To Open Application For Known And Unknown Users forums.asp.net

The part of my web.config is following: <authentication mode="Forms"> <forms loginUrl="login.aspx"> </forms> </authentication> This code gives always redirect to login.aspx page then after succesfull log in, application is redirected to default page default.aspx. And this is the case when the user is known because user gives permission to log in (user obtain login and password before log in) Now I decided to open my web application for anymous users and I have question - How to modify web.config file to open for example homepage.aspx for all visitiors but when the visitor clicks in Login button in application he will be redirected to login.aspx page and asked to write login and password. From this moment he not wil be anymous. I think about two independent part of my application: one is for all visitors and it runs when visitor input the name of the webpage (www.xyz.com), second is for identifying users which (their login and passwords) exists in database - there is the button in the application which after clicking redirects user to login page.

[2005] Open Default Web Browser Then Login To Secure Page? www.vbforums.com

I'd like to be able to to login to a secure website directly from within my VB.Net 2005 app. I can use the following to open the page in the user's default web browser System.Diagnostics.Process.Start("http://www.xxx.com/login") When you visit this webpage you're prompted for a username and password (using the .htaccess/.htpasswd method). I'd like to be able to bypass the login popup and go straight to the logged in form (I have username and password stored in my.settings

Login Failed For User NT AuthorityAnonymous Logon stackoverflow.com

Im getting the following error when I try to login to web page with a valid username and password: Oops. The error: Login failed for user 'NT AUTHORITYANONYMOUS LOGON'. This is my web.config : <configuration> <system.web> <customErrors mode="Off"/> <authentication mode="Forms"> <forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All" timeout="30" path="/" /> </authentication> <authorization> <deny users="?" /> </authorization> </system.web> </configuration> Anyone know what this error mean?

Login Form To Store Info? www.vbforums.com

I have just added a login form to my main form which just has a username textbox and a password textbox. What i basically want a user to be able to do is enter their username and password into these fields and then for the form to store the values there. So if they enter their username and password, and then click OK on the login form, if they were to open up the login form their details would still be there?I want to be able to call on these values else where? How do i store the info in the username and password fields? And if they then closed the form and opened it up again would it still remember what username and password had been entered?

Security :: Want To Know Encryption Method For Password? forums.asp.net

I want to know how can I protect my password in login & register pages because I am not using .net's Login or CreateUserWizard controls.I want an encryption method for this process e.g. when storing password in the database form the register page and when comparing the password with stored password in database to varify a user in login page.

Security :: How To Replace Login Form With Login State forums.asp.net

I'm new to ASP.NET. I have a custom login form on my web with login and password fields and OK button. I use my own MembershipProvider to authenticate user. The login control form is in the upper right corner of page and if user is successfully authenticated, I need to display his name and html link "Logout", instead of it. How can I get programatically user status and use it in condition for displaying login form/login status?

How To Reset Password www.daniweb.com

how can we change the password in the login form when the form is executing

CURL - Submitting A Form With Duplicate Forms Of The Same Form Names stackoverflow.com

I am trying to POST to a page that has two forms with duplicate name elements. The problem is that one form gets the password value and the other form gets the login value. (I can see this by printing out curl_exec($ch);) I will include my code for the target URL and the formdata. How do I fix this? // my target url and form data $target = "http://www.example.com/login"; $formdata = "id=$login&password=$password&Submit=Log In"; Forms: <form id="login" name="login" method="post" action="login"> <label for="id">LOGIN ID</label> <input type="text" value="" name="id" maxlength="50" size="30"><br> <label for="password">Password ID</label> <input type="password" name="password" maxlength="12" size="30">......

Multiple Databases phpbuilder.com

I have this site where I've installed phpBB Forum, B2evo blogs, A GB and PhpLinks. All of them have their own databases. I also have a Form where members can register. The Form has Login and PassWord entry fields and the values are stored in the Member master table in a different databse. Is there someway I could also populate the Login/Password of all the applications on submission of the above form.

Automatically Input Current User forums.aspfree.com

i have a database that users log into before they can do anything, after they log in, when they open up a form, i want the username that was used to log in to be displayed and stored in a field. how would i do that? Here are the relevant fields and tables Name ---------------------- Description USERS --------------------- contains username/password/success/date time for login Login ---------------------- Login form Username ------------------ Username field in 'Login' Password ------------------ Password field in 'Login' EXPOSURE_REPORT --------- Table that contains information for form VV EXPOSURE_REPORT --------- Form REPORTRECIEVEDBY -------- field that needs the current user stored in it there are 6 or 7 users total, if that's at all relevant, thanks!

VS 2008 - InnerHtml - Cannot Submit Form www.vbforums.com

I'm working on a easy-login client, but I can't hit submit for the love of god. my code looks a bit like this: Me.WebBrowser1.Document.All("Username").SetAttribute("value", txtUser) Me.WebBrowser1.Document.All("Password").SetAttribute("value", txtPw) Me.WebBrowser1.Document.Forms(0).InvokeMember("Login") I'm pretty certain I have the name right for login. The User and password fill in wonderfully. Any suggestions? (I've tried this on other web forms and I couldn't hit submit on them, either)

[Innerhtml] Submitted A Webform? social.msdn.microsoft.com

I'm working on a Habbo easy-login client, but I can't hit submit for the love of god.. my code looks a bit like this: Me.WebBrowser1.Document.All("Username").SetAttribute("value", txtUser) Me.WebBrowser1.Document.All("Password").SetAttribute("value", txtPw) Me.WebBrowser1.Document.Forms(0).InvokeMember("Login") I'm pretty certain I have the name right for login.. The User and password fill in wonderfully. (I've tried this on other web forms and I couldn't hit submit on them, either)

Security :: Web Application Authentication Using Database? forums.asp.net

I am developing a web application which requires user to login. There will be N number of users using website concurrently. We have a MySQL database which will store user information like Name, User ID, Password etc. I am not able to understand on how to check username and password once they enter data using Login form which will be present in DB.

Establish Connection Between Web Form And Sql Database? forums.asp.net

need a simple video that can expalin me the simple connection between a web form and sql db i am a begineer, i am learning all the things from these website, i need a video tutoorial that will explain me that how to create a simple form and simple database and conect them and manage those datas, can you people understand what i am expecting, for example, just a user login page with user name and password , and we have to store that details with a data base, and how to see the details what we stored, thats it and how to edit those details, atleast i need the first set of connection and manupulating video.

Web Forms :: Use Windows Form To Authenticate Against Asp forums.asp.net

I have a ASP.NET website which uses the standard ASP.NET Login Control for authenticating users. The user information is stored in a SQL Server database which is not accessible from client side. I want to write a standalone desktop windows form application which requires user to login with the same credential (username and password) used on the website. For the web-based form authentication, it's simple just to use the login control. Howerver, I have no idea for how to deal with the login for windows form application. My naive idea is to create a login web service which windows form application can utilize.

Form Authentication On Purely HTML Pages? stackoverflow.com

I am using forms authentication in IIS7 to password-protect a dev site, but the authentication seems to get by-passed when the site contains only static HTML files + login.aspx + web.config. When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and it should just redirect to index.html afterward. To summarize, the entire site is using HTML (for now) and needs to be password protected. <authentication mode="Forms"> <forms name="appNameAuth" path="/" loginUrl="~/login.aspx" defaultUrl="index.html" protection="All" timeout="525600"> <credentials passwordFormat="Clear"> <user name="<user>" password="<password>" /> </credentials> </forms> </authentication> <authorization> <deny users="?" /> </authorization>

Editting A Txt File On My Server... www.phpfreaks.com

I have a login form with username and password (html of course). When you hit submit, I want the php script i have to make a log of that login. Heres what I got for the html part: <form action="login.php" method="post"> Username: <input type="text" name="usr" /> Password: <input type="password" name="pass" /> <input type="submit" /> </form> I want the php's name to be login.php, and the text file's name is loginlog.txt.

Login Through Script To Any Website? stackoverflow.com

I have username and passwords in database table for many websites. Whenever I need to go through the website I have to copy and paste usernames and passwords to login. Which is very time consuming. So I need a php script by which I only need to click the link of website which I need to login and by using username and password from database, it automatically submit login form and redirect me to after login web page.

Add Stuff To The Existing Tables? social.msdn.microsoft.com

I am making kind of like a login form, except a little more complicated. Right now I have an SQL Database that stores the login information. My question is, how do I add stuff to the existing tables? Like How would I have it so an admin can type in a new login and a new password, and have it so the form stores it in one of my tables in the database?

Use An Alternate Form Of WebBrowser_DocumentComplete? social.msdn.microsoft.com

In the program I'm writing I need to have a form load a web page and insert a username and password, then if the resulting site of the login is the error page, it will show the original login form and if it succeeds in the login, it will show another form.[code]...

Login Details www.vbforums.com

In my project at the start there will be a dialog box,Login,that has Enter password,the correct password when typed and and enter is clicked will bring to the mainmenu,the password right now is in the code,I need to make a form to change the password,ie login form datails,with user name,earlier password,new password and confirm password,also the new password typed should be the one which should be entersd in the Login dialog when the system is run ,Does anyone have code or an example to do this? Thanx in advance

Security :: Use Login Control And In 3-tier Architecture? forums.asp.net

I am creating the web site (storing the employee Info) in this I am using 3-tire architecture ASP 2.0. But I am confusing that how to use the login control in this and how it wills validate the username and password with table store in my database. In this I have two table (fk_tbluser and tblemployee). In fk_tbluser all named user will store (username and password) and in the tblemployee(employee no and password) table I am storing the password of employee login. When Named user will login in the portal it has to pass the Admin in the username and password which stored in the fk_tbluser table. E.G: username : admin password : admin password which stored in the fk_tbluser table. When employee will login in the portal it has to pass the employeeno as username and password which stored in the tblemployee table. E.G: username: 000001 password : employee(000001) password which stored in the tblemployee

Send Data From A C# Application To A Website / Webserver? stackoverflow.com

Is it possible to send data from a C# application to a web page while opening the browser e.g. if you had a login form online and wanted to post a username and password to that form from your C# application. I see something like open browser to the forms page and post the login details to that page from the program then the page can process the form straight away thus logging them on and sending them to the homepage.

.NET 2.0 And 4.0 Seem To Treat The Root Url Differently In Forms Authentication? stackoverflow.com

If have the following web.config: <configuration> <system.web> <authentication mode="Forms"> <forms name="MembershipCookie" loginUrl="Login.aspx" protection="All" [code]...

PHP Authentication ? www.sitepoint.com

I have 2 scripts and two forms. One form is a registration form that inputs a user name and a user password into a MySQL database. The password goes through MySQL's MD5 function. The login form is as basic as it can get, and the login PHP file tests the supplied user name and password against what's in MySQL. I put the submitted password through MySQL's MD5 function when I test...

Security :: Forms Authentication In Web.config / Access To Folder Be Made Via Login Form? forums.asp.net

i have a problem with forms authentication. i have a website and want to restrict access to an especific folder. i want the access to this folder be made via the login form this is what i have in the web.config <authentication mode="Forms"> <forms name="Compra" loginUrl="wfLogin.aspx" path="/" protection="All" timeout="30" /> </authentication> <authorization> <allow users="*"/> </authorization> Then this to restrict folder <location path="Admin"> <system.web> <authorization> <deny users="*"/> </authorization> </system.web> </location> the problem is that when the user login with valid information the website return to the login form.

VS 2008 Make Username And Password Form To Login Into Form2? www.vbforums.com

how make username and password form to login into form2

Verify Username Password From Access Database? social.msdn.microsoft.com

Login form in vb.net coding to verify username password from access database

Security :: How To Coding Webpage To Access Secured Folder Without Pop Up The Windows Login forums.asp.net

I set up a secured folder in my website. When I access this folder via web page, it pop up a windows login form to ask for user name and password. I would like to code the asp.net page or java script to access this secured folder with username and password without pop up the login form. find the method for asp.net page accessing the secured folder automatically.

Web Browser And Login Form Help www.xtremevbtalk.com

I'm tring to login to https://www.comsec.com.au/ using the web browser control but I can't figure out how to submit the form.I'm using the below code for another site which works but looking at the source for the above site it doesn't have a "submit" button to press.Can anyone help me to submit the form? Code:WB1.Document.All("" & LoginField & "").Value = "" & UserName & "" 'idWB1.Document.All("password").Value = "" & Password & "" 'passwordWB1.Document.getElementById("Submit").Click 'login

Web Browser And Login Form Help www.vbforums.com

I'm tring to login to https://www.comsec.com.au/ using the web browser control but I can't figure out how to submit the form.I'm using the below code for another site which works but looking at the source for the above site it doesn't have a "submit" button to press.Can anyone help me to submit the form?VB Code:WB1.Document.All("" & LoginField & "").Value = "" & UserName & "" 'idWB1.Document.All("password").Value = "" & Password & "" 'passwordWB1.Document.getElementById("Submit").Click 'login  

Is This Possible To Login With Our Own Form To Facebook / Google / Yahoo stackoverflow.com

I am going to creating a project in this user can enter username and password in my web form and that Username/Password will check in these following site with this following sequence if any first get authentication true user will be login... Google Twitter Facebook Yahoo blogger Linkedin myspace flickr open id AOL livejournal wordpress I have some question Is this possible to login with our own form to facebook, Google, yahoo, twiteer etc Is it good way? how can I do that?

Password Login (looping) www.vbcity.com

hi there!i've created a password login form where the user can input the id no and password. All id no.s and passwords i have stored in a textfile/document (note pad)how can i write coding that when the user types in the id and password and clicks on login(cmd button) the program can look for the password and id no in the text file and if its the same its allows access to the main system?i think it deals with looping until the password and id is foundpls can anyone help me thanx  

Login Screen Attempt www.xtremevbtalk.com

I am trying to make a login form that will look in an access database for the user and password. I am getting an run-time error.Private Sub cmdLogin_Click()'Verify that the password is correct and enter the search form.If Login.HScroll1.Value = 2 Then EndEnd IfIf Login.txtUser.Text = "" Then Login.HScroll1.Value = Login.HScroll1.Value + 1 Exit SubEnd IfIf Login.txtUser.Text = "" Then Login.HScroll1.Value = Login.HScroll1.Value + 1 Exit SubEnd If Login.Data1.Recordset.FindFirst "Login = '" & Login.txtUser.Text & "'" If Login.Password.Caption = Login.txtPassword.Text Then MsgBox "Login Successful!" Login.Login.Caption = "" Login.Password.Caption = "" Login.txtUser.Text = "" Login.txtPassword.Text = "" Exit Sub End If MsgBox "Login Unsuccessful!" Login.txtUser.Text = "" Login.txtPassword.Text = "" Login.HScroll1.Value = Login.HScroll1.Value + 1End Sub In my access database I have two fields.One is named Loginand the other is Password I created the data box and the hscroll When I run the program and type in the user and password I get a debug error Run-time error '424' Object required I hit debug and this is the line that is highlighted in yellow. If Login.HScroll1.Value = 2 Then Any ideas?

Firefox Access Denied On Enter The ASP Site? forums.asp.net

I have an ASP.Net intranet application that is Windows (not form) authethicationin web.config setting. and it works fine on IE and users got straight into the application.However, when users use firefox 5.0, they got a prompt asking for ID and password and they have to give the Windows login ID and password again to login. However, if they use IE this step is not needed.It seems IE auto retrieve Windows login ID and password behind but not firefox.

Php - Login Form With An Event Of Clicking The Enter Key To Submit The Form - It Is Not Working In IE stackoverflow.com

I have a login form with an event of clicking the enter to submit the form, it is not working in IE <form name="login" action="" method="post"> <ul> <li class="col1">E-mail Address</li> <li class="col2"><input name="email_address" type="text" class="textfiled" /></li> <li class="col1">Password</li> <li class="col2"><input name="password" type="password" class="textfiled" /></li> [Code].... Here on submit button i have mention an event as onkeydown="javascript: if (window.event.keyCode == 13) login.submit(); else window.event.keyCode = null;" This is not working in IE

Logging In To Website Opens A New Tab? stackoverflow.com

I've been working on my personal website as of late, and even thought it's not a big problem because I'm the only one that sees it, it's annoying nonetheless. Whenever I go to my login page, it all works fine. If I enter a bad username/password, it will just print a simple text message error(intended). But, if I login correctly, then instead of redirecting to the root of my website as I intend, it will instead create a new tab in firefox and from there it will be in / (which is correct). The problem is why does it create a new tab? I didn't even think forms were capable of such a thing: My full login page is at [URL] The gist of it is: <form method="post" target="/login"> Username: <input type="text" name="username" /> <br /> Password: <input type="password" name="password" /> <br /> <input type="submit" name="Submit" /> </form> And my server side code is also very simple: if(RouteID=="login"){ if(AuthenticationModule.Login(Form["username"],Form["password"],false)){ //logged in correctly Response.Redirect("/"); //just go to the root of my site }else{ Write("You fail at life"); } }

Using OnLoad() To Focus Login Form- Error Handling bytes.com

I am trying to fix error- object does not exist- I want it possible to allow object not to exist. I am writing a script on a page that may or may not include a login form. For example-after a visitor logs in, the login form is no longer on the page, but other content is still there. I want to bring focus to the login form using the onLoad in the body tag.....but if the login form does not exist, I do not want to perform this function. The following code works fine for focusing the cursor on to the login form. (code) <html> <head> <title> Testing Javascript </title> <script type="text/javascript"> <!-- function addcursor () { if (document.login) { document.login.username.focus(); } } //--> </script> </head> <body OnLoad ="addcursor()"> <form name="login" id="login" action="" method="post"> <input type = "text" name="username" id="username" /> <input type="password" name="password" /> </form> </body> </html> (end code) But if you remove the form in the body section from the code, an error "object does not exist or is null" results.

Login Password www.vbforums.com

HiI have a login form inside my VB6 application.The user must provide a password to be able to use the application.Where should I store the password?I want to add a command button into my VB6 application "Change Password" that way I cannot store the password into the code.where should I store it?thanks in advance

IDE :: Main Form Is A Login Form If The USer And Password Matches social.msdn.microsoft.com

im trying to do where the main form is a login form if the USer and password matches that in the code it goes to the main screen if it doesent it launches a form saying this user and or password is incorrect and when you click ok it closes that message window as well as the login form stop the program from launching is has to match the user and password from the text on text box one and masked textbox 1.

How To Compare Encrypted Password Stored In DB With Unencypted One forums.devshed.com

I need to compare the encrypted password stored in mySQL database with one which I am getting from login form submit. Scenario is as follows: There is stored password in the table users which I need to compare in login process with one which user enters into this form: <form method=post action="mycheck.php"> <input type=text name=user> <input type=password name test_password> <input type=submit name="login"> The passed password value in mycheck.php is not encrypted but rather the original entry - although I do not understand this why. For sure if I compare this raw entry with one sititng in the DB there is no comparission since they are totally different. How to go over this? Where is the problem hidding.

Security :: Database Connection Authentication Using URL? forums.asp.net

I wish to create a Single Login Page for the Various Applicatioins i am creating and So i wish to authenticate the Database connection in these other Web Forms (Landing Page) from the url. http://localhost/Landing.aspx?<Username><Password> How do i create this feature?? and then extract the username and password on the other web forms??

Changing Password www.vbforums.com

i have a login form, the user will enter his name and password, if correct, they will have an option if they want to change his password, if yes a new form will appear asking for the old password, new pass word and confirm new password if everything matches the login form will appear. i'll use acces as my database . pls help.

Security :: Authenticate Forms Using Login Controls? forums.asp.net

I am trying to develop some forms in Visual Web Developer 2008. I have successfully used the login Controls to embed the Authentication into my forms but the problem is anyone can enter the Private Forms by simply entering the Address of private Forms in the address bar, so there is no meaning of Login Controls :(. For Example, i have a LoginMembers.aspx Form, which has those Login Controls, if you enters correct login Name and password, you are redirected to MyPage.aspx, but if someone hasnt entered the correct password , he should not be able to enter MyPage.aspx. But if i enter the address of the MyPage.aspx(http://localhost:1234/MyProject/MyPage.aspx) in addressbar, it can be accessed bypassing the LoginMembers.aspx page :confused: How to make private forms accessed by members who have logged in properly?

How To Authenticate Forms Using Login Controls www.vbforums.com

I am trying to develop some forms in Visual Web Developer 2008. I have successfully used the login Controls to embed the Authentication into my forms but the problem is anyone can enter the Private Forms by simply entering the Address of private Forms in the address bar, so there is no meaning of Login Controls . For Example, i have a LoginMembers.aspx Form, which has those Login Controls, if you enters correct login Name and password, you are redirected to MyPage.aspx, but if someone hasnt entered the correct password , he should not be able to enter MyPage.aspx. But if i enter the address of the MyPage.aspx(http://localhost:1234/MyProject/MyPage.aspx) in addressbar, it can be accessed bypassing the LoginMembers.aspx page How to make private forms accessed by members who have logged in properly?

Logging Out Cookie Not Working forums.devshed.com

here is the login page Code: <form method="POST" action="login-complete.php"> Username: <input type="text" name="username" size="20"><br> Password: <input type="password" name="password" size="20"><br> <input type="submit" value="Submit" name="login"></form> here is the login-complete PHP Code:

User Login Redirect www.phpfreaks.com

Here what i got so far: if (!isset($_SESSION['logged_in'])){     // not logged in, show form echo "<form action="{$_SERVER['PHP_SELF']}" method="post"> user id <input type="text" id="username" name="username" size="30" value="" /><BR /> password <input type="password" id="password" name="password" size="30" value="" /><br /> <input type="submit" name="Login" value="Login" /></form>"; } else { header("Location: members.php"); }

Click On X (close) Button, It Closes The Login Form? bytes.com

I have a problem about shown event. I have a login form and a main form. I start the program with main form. then I used frmMain.Shown() to control the login form. When main form is shown, it checks Win. Registry if username and password is stored there. İf yes, login form comes and wants me to sign in and if not, it calls first login form to create a record in Registry.The problem is that; When I click on X (close) button, it closes the login form, but Main form is still running and I can use it without sign in. How do I solve this problem? Or is there any other way to controls if Registry has the record or not

Cannot Automatically Fill Form In A Page With Frame www.vbcity.com

Dear fiends,I would like log in automatically in this site:         http://www.fineco.itbut the web page have a frameI have try with one tons of code but nothing work...This are some examples: (web is webbrowser control)1) Web.Document.f2.login.login.Value (where f2=name of frame login=name of form login name on input text)2) Web.document.frames.item(2).form(0).login.value="text"The response is always the same: acces denidedWhy? I have also try to load all frame:Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)   If (pDisp Is WebBrowser1.object) Then                .....here code......      End IfEnd SubPlease HELP ME 

Username + Password Check www.phpfreaks.com

Okay so I have a registered name and password - a hashed one - stored in the database table called member. First, when someone submit the form for a login, how do I match the name the person typed with the name in the database, case-insensitive and how to I check whether the 2 passwords match since one is hashed, which is the one in the database. BTW, for the forms, I'm using $_SESSION to store the $_POST values.

Focusing On A Pop-up Form? www.vbforums.com

Hello friends! I'm working on this login pop-up form which will prompt the user to enter the password when the main form is shown. Meaning main form will be shown, and then on top of it the login form will pop-up. How do I make it so such that the user are unable to click and go back to the main form by clicking on the main form, and instead focus on the login popup form? Thanks for the help!

VS 2008 - SQL Server Login From Windows Forms App www.vbforums.com

The configuration is as follows Remote SQLserver 2005 back-end Windows Forms Front end (Visual studio 2008) Is there a way to provide the username and password for the data connection from a Login form and not have it stored in a Connection string? Even better, is there a way to invoke the SQL login window each time the app starts? I need each user to be able to use his own (sqlserver) login everytime the application is started.

VS 2008 : SQL Server Login From Windows Forms App? social.msdn.microsoft.com

The configuration is as follows Remote SQLserver 2005 back-end Windows Forms Front end (Visual studio 2008) Is there a way to provide the username and password for the data connection from a Login form and not have it stored in a Connection string?Even better, is there a way to invoke the SQL login window each time the app starts?I need each user to be able to use his own (sqlserver) login everytime the application is started.

Forms :: Best Approach To Checking Conditions Before Loading A Form www.vbdotnetforums.com

I have a form which asks for a username and password to connect to a MySQL database. Before I load the login form I would like to place a check to see if the connection information is stored in the My.Settings.<connection string..I am using Sub New() in the Form.Designer to do this by placing the following [code]The connection form does show but when i close the form there is a blank form that shows up.

Security :: Encrypt The Data In A Column Of A Simple Table In Sqlserver 2008? forums.asp.net

i created a asp.net form for registration without using login controls and a table for storing information. the passwords in the password column in the table is clearly visible in text form i want it to be in encrypted form.

Form Question - Implement A Simple Form phpbuilder.com

I'm trying to implement a simple form. I've pretty much been using the format in the PHP book I bought, but everytime I submit this form, it just reloads the form again. <p>Music Lab Login</p> <form action="<Full URL of this file>" method="post"> <p>Username:<br /> <input type="text" name="username" size="20" maxlength="20" value="" /></p> <p>Password:<br /> <input type="password" name="pw" size="20" maxlxength="20" value="" /></p> <input type="submit" name="submit" value="Login" /> </form> <?php if(isset($_POST['submit'])) { echo "Got it"; } ?>

Navigating From One Page To Other? stackoverflow.com

i made a form in which i input login information....if the information was correct the next page opened else the login form appeared again with 'wrong info' note....for this i wrote the following code in the login.php(form page)...first within php tags i wrote if( isset( $_POST["h11"])) {echo "wrong password";} and then below this outside the php tags, within the form tags , i set the value of h11(type hidden) to true...after this i coded the entire login form with action="loginback.php"...now in loginback.php i tested if username and password provided by the user are correct...if not i redirected the page to login.php using header("location:login.php")....now my problem is that the message wrong password is not being displayed as when we redirect to login.php from loginback after checking inputted info,the value of isset() becomes 0 again.

Configuration :: Debug Not Working In Login Form? forums.asp.net

I'm starting a new web site which involves a Novell/LDAP login to enter. Just installed VS2008, using framework 2.0, configured web.config to use authentication using form login.aspx which is the LDAP form we reuse from app to app. Debug is enabled, in form and in VS options. I'm running with localhost web server. Problem is debug doesn't work in the login form, does not stop at breakpoints I put in page_load event. Tried to bypass the login form to make sure, turns out debug will work on some startup form I made but does not when I redirect to login form. It seems VS2008 does not like something in my login form.

Security :: How To Use Multiple Membership Providers forums.asp.net

In my web application am using ASP.Net Membership for authentication ann role management.But now i have a situation where i need to authenticate multiple clients against different DB based upon the URL request being send. Below is my web.Config Details. <authentication> <forms loginUrl="Login.aspx" defaultUrl="Login.aspx" /> </authentication> <membership defaultProvider="QuickStartMembershipSqlProvider"> <providers> <clear/> <add connectionStringName="MEMBERSHIP_AND_ROLES" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="SecurityQuickStart" requiresUniqueEmail="true" passwordFormat="Hashed" name="QuickStartMembershipSqlProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </membership> <roleManager enabled="true" defaultProvider="QuickStartRoleManagerSqlProvider"> <providers> <clear/> <add connectionStringName="MEMBERSHIP_AND_ROLES" applicationName="SecurityQuickStart" name="QuickStartRoleManagerSqlProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </providers> </roleManager> ConnectionString.Config: <add name="MEMBERSHIP_AND_ROLES" connectionString="Data Source=x.x.x.x;Initial Catalog=xxx;User ID=xxx;Password=xxx" providerName="System.Data.SqlClient"/> Am using form authentication for user authentication. In my login page am using Membership.ValidateUser(username,password),which is using default membership provider. Now my situation is i need to override the default DB and connect to multiple DB based on URL request send to my web server.

Login Form Linked With Sql www.xtremevbtalk.com

hi guys i have created a table in oracle sql named "login" with columns username and password.USERNAME PASSWORD----------- ------------xyz abcdxyz1 sdfg In a simple form in VB i have kept a combo box for storing xyz and xyz1 and a textbox for entering the password and a ENTER button.now i wanna to compare the values in oracle sql table and values entered in the form and only the authorized user should be allowed.Any idea how to implement this.What sql query to use etc.

Login Form www.xtremevbtalk.com

I have try to use login form using database connection and it seem that i cannot make it to work. It can work if i get data from the form itself. Here is some part of my login form code.Code:If txtPassword.Text = data.Recordset!Password ThenMsgBox "password correct"ElseMsgBox "password wrong"End IfThank you a million for helping me. I am a newbie in VB.

Passing Arguments To Web Page Problem www.xtremevbtalk.com

I have been wrestling with a problem for days. The solution is probably simple but i am not that experienced with html.I have a vb program which sends info to a web page and as that page fills up a button is 'pressed' and the page is submitted, cleared and reloaded again.To login to the site the code is as followsoIE.Document.Forms("Login").All("district").Value = "district"oIE.Document.Forms("Login").All("password").Value = password"oIE.Document.Forms("Login").submitthen I navigate thru several pages via code to get where I need to go then the code I use is basically this (with non essential info cut out)N1 = "order.code"N2 = "order.quantity"While Not .EOF For x = 0 To 9 If Not .EOF Then oIE.Document.Forms(0).All(N1 & x).Value = ![Product No] oIE.Document.Forms(0).All(N2 & x).Value = !Qty .MoveNext End If If Err = 3021 Then Exit For Next While oIE.Busy: Wend oIE.Document.Forms(0).submitThis works fineSo as you can see i am able to put info into forms where required. Now my problem. I have written new software that basically does the same thing but at a different site.The login works fine but when the next page appears i am unable to enter any info into either of the 2 fields that are availableif i use the codeoIE.Document.Forms(0).All("Code").Value="1234" I get the error message'Object variable or with block variable not set"This is prolly because the forms(0) does not exist i think, although the form is there. I think i may need to access the document?The html code is different for the input on this page alsoOn the first page the code reads<input name="Password" type="password" id="Password" style="width:55px;" />On the second page the code is;<input id="SecurityCode" tabindex="1" name="SecurityCode" type="TEXT" value="" size="16" maxlength="6" />so i do not know if there is a different way to pass a value to the "Input ID" field as opposed to the INPUT NAME field.ANY help would be greatly appreciated as would some direction as to find out more about navigating or manipulating web pages from within VB. (events properties methods etc)Many thanks in advanceEDITI am wondering if it is possible that the new window that is being opened is a child window. Is there a different way to access this?

Client Login To Server Without SQL? www.vbforums.com

Is that possible to done this? If yes, how to done it? Client: [Client is made in VB.NET] Add new form: "Login Form" Add new form: "Form2" [Code]... if it is "LOGIN" then check is the username and password correct, after that send back to the client that the information is true so the client will show up Form2 if it is "REGISTER" then add new username and password to the server *NOTE: The username and password will be saved in a file

How To Define The Focus On Page Load www.codingforums.com

I'm using ColdFusion to handle the login function for users (see login_form.cfm below). Have to click in the username box to be able to start typing. What's the best way to define the focus to be on the username when the page initially loads? <form method="post"> Username: <input type="Text" name="username"><br> Password: <input type="Password" name="password"><br> <input type="Submit" value="Login" name="login"> </form>

Security :: Direct Access To The Page Using Role & Membership Provider? forums.asp.net

I have a web app developed using role & membership provider... this is my web.config file <authentication mode="Forms"> <forms loginUrl="Forms/LogIn.aspx" name=".ASPXFORMSAUTH" defaultUrl="Forms/main.aspx" timeout="30"></forms> </authentication>[code].... So i would like that the page "pag1.aspx" is reached bypassing the "main.aspx" so If I try to digit directly on the server http://localhost/forms/pag1.aspx?C=159 ......correctly appears the login page....and the URL became.. http://localhost/Forms/LogIn.aspx?ReturnUrl=%2fForms%2fpag1.aspx%3fC%3d151&C=159 and after login I can see correctly the page1.aspx . when I try to reach the page from my browser..I digit http://myserver/forms/pag1.aspx?C=159 .... the login page appears...but the url became.. http://myserver/Forms/main.aspx and after login I cannot see the page1.aspx....but main.aspx

Make A Login To Website Via An Android App? stackoverflow.com

I'm trying to make a login to my website via an Android app.For some reason something always goes wrong.Here's my site login structure: Login.php - the login form (username & password) Auth.php - login authentication page (gets the username & password from page - login.php (POST method)) I already have to interface with Username & Password (EditText both) What is the method to make a login via android app?here's my current login method private void login() { [code]........

JQuery :: Fade Out, Then Submit Form? forum.jquery.com

i have a form <form id="login" autocomplete="off" action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">User:<br/><input type="text" name="user"><i></i><br/> Password:<br/><input type="password" name="password"><i></i><br/> <input value="Login" onSubmit="setTimeout(2000); return false;" class="submit" type="submit" name="login"> [Code]..

ZF: Login Form Validation? stackoverflow.com

WHat's the best way/code in Login Form (Zend_Form) to display error message 'Login/password incorrect'?I slowly begin to understand, that setting $this->setErrorMessage('Login/password incorrect') in form/init() is not enough and I somehow have to involve Validators to be able to see the message I set.To which object should I bind this message and do I have to use validator or not? Update: LoginAction() code: $auth = Zend_Auth::getInstance(); $authAdapter = $this->_getAuthAdapter($formData['userName'],$formData['password']); [code]...

Get The Value Of A Zend_Form In Zend Project? stackoverflow.com

I have a Zend_Form called login.php in my zend project. In controller I have $request = $this->getRequest(); $request->setMethod('post') ->setPost(array( 'username' => 'admin', 'password' => '111111', )); $this->dispatch('/en/auth/login'); $values = $form->getValues(); I wonder how can I get values from this form? $form->getValues() will return a array? and how to get the username and password form it?

Help!! How Do I Submit This Form? www.vbforums.com

<form method="post" action="Login.asp" name="postForm" LANGUAGE="javascript" onsubmit="return Submit_onclick()"><input id="UserName" maxlength="50" name="LUserName" size="20" type="text><input id="PassWord" maxlength="50" name="LPassWord" size="20" type="password<input name="PostIt" type="hidden" value="1"><input type="submit" value="Login" Name="Submit"></form>Ive tried everything from webbrowser1.document.forms(0).submit to anything else i can think of, but i just cant seem to submit the form!does anyone know how i can do this?

Matching Form Password With MySQL Encrypted One forums.devshed.com

I'm trying to set up a really simple session-based login thing - I think I've got most of the basic concepts down but I'm running into difficulties with the password. I've set the password field in the MySQL DB as 'password' and so it is encrypting it. how do I get the form on the login page to either decrypt the password from the DB - or encrypt the password being passed fro mthe form to match the one the DB has. PHP Code:

Help Trying To Automate Login But Cant Send Data Due To Javascript www.vbcity.com

I'm trying to automate the login and send message to o2login page hereLogin in page send message page hereSend message page click here the code to login works but i haven't quite worked out how to make it wait for web page to finish and how to stop the pop-up    'navigate to website    On Error Resume Next    WebBrowser1.Silent = True    Dim URL As String    Dim test As String    URL = "http://www.genie.co.uk/06201721502892500117/O2/login/doLogin"    WebBrowser1.Navigate URL    'post the data    WebBrowser1.Document.Forms(0).All("username").Value = "username"    WebBrowser1.Document.Forms(0).All("password").Value = "password"    'submit the data    WebBrowser1.Document.Forms(0).submitThis is the bit that don't work    URL = "http://sendtxt.genie.co.uk/cgi-bin/sms/send_sms.cgi"    WebBrowser1.Navigate URL    WebBrowser1.Document.Forms(0).All("contact").Value = "number"    WebBrowser1.Document.Forms(0).All("MESSAGE").Value = "test message"    'WebBrowser1.Document.All("action").Click    WebBrowser1.Document.Forms(0).submitWhen submiting the data it just reloads the page there is a script attached to where you would click if you did this by mouse and wondered if anyone can get round thisThanx in advanceemail me

A Vb Pop Out Box Prompting For Password www.xtremevbtalk.com

I want to do a program that check if the login password for window is expire and if it is then will pop out a box prompting for your new password.I am not suppose to use another form for getting the new password so is there any way which I can pop out a box asking for new password without clicking new form in vb and be able to change my login password for window.Thanks and provide codes if possible

Closing A Form In VB.NET bytes.com

I'm trying to do something I thought was simple. I have a form which I useas a login screen. Once the user successfully supplies the password, I wantto open another form and then close the login form. I can open the secondform, however, if I try to close the login form by writing code in thesecond form's Load event, nothing happens. Any suggestions are greatlyappreciated.E9

Transparent Login Form www.vbforums.com

HiiiI would like to create a transparent form which is not having any borders,and that form should be a login form with a username & password on it and the size of that form should be the same as that of the MDI form which soluld also be seen at the same time, coz the Login Form is transparent form and should be exactly above the MDI form so that i can see the MDI form also but should not be able to access the MDI.

Login Forms, With User Name And Password www.access-programmers.co.uk

I have created a login form, with a user name and password. It works great. However I need to use the login form for three different command buttons, on my main access form. The same login form will be used but It will need to open three different forms depending on what command button was selected on the main page. Main page- PID 3 command buttons- building, documents, assessments login form- login 3 documents- build, docs,assess I open main page, PID- click on buildings the login form pops up and I enter the correct username and password the building doc opens. Got it?? The same process for each, I would like to know how is this possible? How do I change the differnt documet that opends according to the command button that has been pushed? :confused: Thanks in advance

VS 2008connect A Login Form In Windows Application To Remote Server? www.vbforums.com

I am having trouble in creating a login form in my windows application.If i create a login form with its database local to the system ,it works fine .But my requirement is that the database is placed on a remote server so that the login is secured.When the user tries to use the application he first needs to login.When he puts the username and password in the login form it should send the data to a remote server for authentication.

.net - Using MySQL To Create A Login Page In Visual Studio 2010? stackoverflow.com

I am using Visual Studio 2010. I can connect to my MySQL datababse no problem by clicking my login button.Now I can't figure out how to query the database and check if username and password are correct, and switch to a different form, to display the data loaded from the database.This is Login.vb Form Imports MySql.Data.MySqlClient Public Class Login Dim conn As MySqlConnection [code].... When the login is completed, and username and password are correct, I want it to load Main.vb.

Post To A Web Page And Get Results In String forums.devshed.com

How do I fill out a web form from VB 6 and get the results from the web page into a string variable. For example, I would provide a username and password to a web site and get the HTML contents of the next page (after successful or unsuccessful login) into a string to determine if the login was successful or not.Thanks for the help

Security :: Two Web.config Files With Different Authentication Modes In One Application? forums.asp.net

I have Asp.net web application with two web.config files and one will be Forms Authentication mode and other will be Windows authentication mode.When i provide username and password in my login page (for both authentications login page will be same)based on the username(from database or local domain ).. switching has to happen between these two web.config files User Aurthentication is done using WebService.

Send Keys Doesn't Send Command www.ozgrid.com

We use proprietary software to connect to an oracle database. The proprietary software has its own login form. I connect to 4 or 5 different databases randomly throughout the day. I wrote a script that I thought would alleviate my login woes but it doesn't work. The login, password, and database info get sent to the form but they all end up on the login line. Instead of the tab character being sent, I get a Beep generated for each line of code that is supposed to send the tab key code. My code is below and is stored in a *.vbs file. setwshShell =wScript.CreateObject("WScript.Shell") wshShell.AppActivate "Title Of My Login Form" wScript.Sleep 100 wshShell.SendKeys "My Login Name" wScript.Sleep 500 wshShell.SendKeys "{TAB}" wScript.Sleep 500 wshShell.SendKeys "My Password" wScript.Sleep 500 wshShell.SendKeys "{TAB}" wScript.Sleep 500 wshShell.SendKeys "Name of My Database" wScript.Sleep 500 wshShell.SendKeys "{TAB}" wScript.Sleep 500 wshShell.SendKeys "~"

Security :: Read Username And Password For Login forums.asp.net

I am trying to login usng form authentication from my web.config but it does not work. In the web.config i have the following: (i am going to make the password secure but just need to work with the basics <location path="~/Admin"> <system.web> <authentication mode="Forms"> <forms name="authCK" loginUrl="~/admin/adminlogin.aspx" protection="All" timeout="30"> <credentials passwordFormat="Clear"> <user name="admin" password="1" /> </credentials> </forms> </authentication> <authorization> <deny users="?" /> </authorization> </system.web> </location> my asp code is [Code].... what it could be ive tried all sorts but it keeps saying incorrect username or password which is the failuretext above.

Please Help Experts: My Small Code Not Working. www.xtremevbtalk.com

Hi,In my form to check username and password I have coded as:---------------------------------------------------------------------- If (txtUsername.Text = rs_gateway!r_username) Then If (txtPassword.Text = rs_gateway!r_password) Then MsgBox "Successful Login", vbOKOnly, "Status" Unload Me Load frmFirst frmFirst.Show Else MsgBox "Login Failed for Password", vbCritical, "Status" txtPassword.SetFocus Exit Sub End If Else MsgBox "Login Failed for Username", vbCritical, "Status" txtUsername.SetFocus Exit Sub End If----------------------------------------------------------------------But even if I enter right password and username, it is givingerror of the "Password's" Else conditon, I mean "Login failedfor password".What is Happening ?Rohit.

Auto Click An Hyperlink, Need Some Help www.vbcity.com

Hi im building an program that shall auto login on an webpagewith my user details, and password, that works fine here is my codePrivate Sub cmd_auto_login_Click()web.Visible = Trueweb.Navigate ("http://www.cashclicking.com/members/surf.php")Do Until web.ReadyState = READYSTATE_COMPLETEDoEventsLoopweb.Document.Forms(1).login_user.Value = "lryd"web.Document.Forms(1).login_pass.Value = "some password"web.Document.Forms(1).submitEnd SubThis code works, very well, because the login site has two textboxes i can put myvalue in, but how do i auto click on an link ? if i know the link name ? howcan i get my computer to auto click it after 35 seconds ?I also need litle help with mouse cordinates, i need to now the cordinateswhere my mouse is on the screen.Thanks for helping me!//lryd

Password Change Problem www.vbcity.com

Hi,   I have a login form for the manager and the manager can change passwords for all the users, so I have a form that lets the manager change password after they login in as a manager. The problem is that when I hit change password button it changes both the users and managers password instead of it changing only the one that is selected from the combo box. I have attached the program. If anybody can help me out I will really appreciate it. Thanks

Auto-Complete Website Username And Password Popup? www.vbdotnetforums.com

i have a few buttons on a form that link to website url's that i would like to login to automatically, But they have a pop-up login that is displayed. I have a text file where i store the user names and passwords and then read them as variables. How can i get them to be entered automatically when i click on the link buttons in my form?

Add Text To A Website Form From A Vb App www.vbforums.com

hey, i would like to make a login app for this website called zone, it uses passport to log in, i made two textboxes 1 for user and 1 for pass and i made a web browser where the login form its going to be on, i want that when the user clicks on the button login it it puts the user and pass into the login form, this is the url to the log in form:http://login.passport.com/login.srf?...9ebbfe254e0655thanks,Jose Rodriguez

How To Use Login Form In Db Startup... - Version: 2007 (12.0) www.utteraccess.com

I have a login form which asks for username and password. If the correct password is entered in, it will take the user to the search form. This login form isn't really functioning in that, the user can easily just go and open up the search form themsleves from the database, thus bypassing the login form. What I want is for the login form to display when the DB is first opened and not allow the user access to any other objects unless the password is entered in correctly. How do I go about doing that? Thanks

Logon Form That Passes UID And PW To Microsoft ODBC String - Version: 2003 (11.0) www.utteraccess.com

I am trying to build A Logon form that passes UID and PW to microsoft ODBC string when the end-user type in their information on the start up form. I did not want to use a table because if the person does not have a user account on the back-end connection then the tables cannot link and the end-user will not be able to access the main menu. I created a login form with a tbxUID and tbxPW and when the end user clicks the ok button nothing happens except for the form closing. If I replace the reference code which does not ask for a password it works fine. Please help, Any suggestion/guidance will help. Private Sub btnOK_Click() Dim strDSNName As String Dim strAppName As String Dim strDatabase As String 'Dim strUID As String 'Dim strPW As String Dim strRemoteTableName As String Dim strLocalTableName As String Dim strConnection As String Dim stDocName As String Dim stLinkCriteria As String Dim daoTableDef As DAO.TableDef 'DSN Reference strDSNName = "Ship3M" 'Application Name To Trace & Troubleshoot strAppName = "Microsoft Access 2003" 'Global Login Username g_strUserid = "Forms.[frmStartUp].tbxUID" 'Global Login Password g_strPassword = "Forms.[frmStartUp].tbxPW" 'Remote Server Table Names strRemoteTableName = "test0" strRemoteTableName = "test1" strRemoteTableName = "test3" strRemoteTableName = "test4" strRemoteTableName = "test5" 'Local Server Table Names strLocalTableName = "test_0" strLocalTableName = "test_1" strLocalTableName = "test_3" strLocalTableName = "test_4" strLocalTableName = "test_5" 'ODBC Connection String strConnection = "ODBC:" & _ "DSN=" & strDSNName & ";" & _ "APP=" & strAppName & ";" & _ "DATABASE=" & strDatabase & ";" & _ "UID=" & g_strUserid & ";" & _ "PWD=" & g_strPassword & ";" & _ "TABLE=" & strRemoteTableName 'rc = Check_Password("cars", tbxUID, tbxPW, Screen.ActiveForm.hwnd, "cars.drive") 'MsgBox rc 'Select Case rc ' Case 0 'Login Failed ' MsgBox "Please enter a valid Userid and Password" ' iLogin_count = iLogin_count + 1 ' If iLogin_count > 3 Then ' Application.Quit ' End If ' Me![tbxUID].SetFocus 'Case -1 'Successfull Login' ' MsgBox "Good Login" ' g_strUID = "[USERID] ='" & UCase$(Get__Userid()) & "'" 'Case -2 'Expired ID ' MsgBox "Your password has expired" ' DoCmd.OpenForm "frmPass_Change" 'Case -4 'error ' MsgBox "Unable to connect to database server. Please contact the system administrator." ' Application.Quit 'End Select stDocName = "test0" DoCmd.OpenForm stDocName, , , stLinkCriteria DoCmd.Close acForm, Me.Name End Sub Reference Code end-user ================ Option Compare Database Option Explicit Function OracleConnect() As Boolean Dim ws As Workspace Dim DB As Database Dim LConnect As String Dim strUserid As String Dim strPASSWORD As String Dim UID As String Dim PWD As String On Error GoTo Err_Execute 'Use {Microsoft ODBC for Oracle} ODBC connection LConnect = "ODBC;DSN=Store;UID=username;PWD=password;SERVER=myserver" 'Point to the current workspace Set ws = DBEngine.Workspaces(0) 'Connect to Oracle Set DB = ws.OpenDatabase("", False, True, LConnect) 'Link Tables From Oracle DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=store;UID=username;PWD=password;SERVER=myserver", acTable, "test1", "test_1", False, False DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=Store;UID=username;PWD=password;SERVER=myserver", acTable, "test2", "test_2", False, False DoCmd.TransferDatabase acLink, "ODBC Database","ODBC;DSN=Store;UID=username;PWD=password;SERVER=myserver", acTable, "test3", "test_3", False, False DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=Store;UID=username;PWD=password;SERVER=myserver", acTable, "test4", "test_4", False, False DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=Store;UID=username;PWD=password;SERVER=myserver", acTable, "test5", "test_5", False, False DB.Close OracleConnect = True Exit Function Err_Execute: MsgBox "Connecting to Oracle failed." OracleConnect = False End Function