Authenticating A Users Login Information?

Jun 15, 2009

I'm a beginner when it comes to VB. th this. I have a Windows Application that I'm making for a friend. It's written in VB and connects to a SQL Server database. My problem is that when a user enters their username and password, then clicks on the OK button (all in a Login form that Visual Studio has a template for), the connection string is verified and connects, but for some reason

View 15 Replies


ADVERTISEMENT

Authenticating The Login Form?

May 12, 2010

Protected Sub Login_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login.Authenticate
Dim objcon As New SqlConnection()
Dim query As String

[code].....

View 3 Replies

VS 2008 Authenticating HttpWebRequest To Login

Jan 5, 2011

Today I was just wondering how I would go about authenticating a HttpWebRequest to a certain site. I'm trying to get the Response from an order page to parse the HTML from it, however it always redirects to the login page when I try, even after assigning the credentials.

[Code]...

View 2 Replies

How To Cath The Time When Users Login

Feb 7, 2009

If Users LogIn, I want to cath the time, in what time it start to login...

View 2 Replies

Buffering Using Ftpwebrequest - Allows Users To Login To The System

Mar 15, 2011

This will be my first post on this site, so I thought I would make it a doozy. I have an web application on our site at work that allows users to login to the system, and submit filings for dockets that our state agency governs. Without getting to involve with what that means, they basically upload mostly .pdf files, but there are others that are acceptable to upload as well. The current system that is being used, uses a simple FileUpload and saving it to a folder on the d: drive of the webserver. I ran into a problem that with anyone outside the building/network, the upload is extremely slow and seems to be limited files no larger than about 1.4MB. There have been a few cases where larger file have made it through, but those ar few and far between. I've tried a couple different 3rd party components, but seem to run into the same limits. So, I install the FTP server on the box with the IIS and am trying to go the FTP route using ftpwebrequest.

Below is what I have put together so far:

Imports System.Net
Imports System.IO

Partial Class _Default

[CODE]...

This seems to work as it is at the moment, but I know it has a long way to go for catch exeptions, speeding it up...

1.) The first problem I have run into is if you try to upload to large a file, you get Out of memory error. I'm needing to change the buffer so that it is buffering chunks instead of the entire file. I've googled over and over again and seem to find several good options in C#, but can't seem to convert them to VB. So, could some one give me some idea how to take what I have and change the buffering to use smaller chunks.

2.) I need to catch an empty UploadFile field.

3.) I will eventually be changing this so that it handle multiple file uploads like my current system uses. (Did I mention that I'm new to the ASP.NET and have been programming in .ASP)

4.) As you will notice from my list of acceptable file types, I might have a problem with some needing to be upload as Binary and some not. So I'm going to have to come up with a way to test and change the Requested.UseBinary = False as needed.

I'm sure that I'll find other items as I progress or the big bosses will find other things that they want to add, but for now.... I know that given enough time, I will get all of these items worked out.

By the way, we have a network adminstrator that leave a lot to be desired and most IIS and now FTP I'm having to learn, implement and configure. I'm wondering if there is anything else that could be causing these limits in file size. Since I've tried 4 completely different forms of uploads and they all seem to run into the same limits, I thought there might be something in a router, firewall, server configuration.... that I might need to look into as well.

View 2 Replies

Login Page - Deny Users Who Are Not Authenticated

Aug 31, 2011

I am new to .NET and I have created a login page, with a user Id and password. In my webconfig, I put the following code in to deny users who are not authenticated.
<authentication mode="Forms">
<forms loginUrl="Login.aspx" timeout="10" protection="All" />
</authentication>
<authorization>
<deny users="?"></deny>
</authorization>

What I am trying to accomplish is that when a user enters the correct information, I would like to store information small information about the user in a cookie, say for example if there an admin, manager, user, etc...Here is the code that occurs when the user click the submit button. The problem is that the page doesn't redirect to the page after user enter correct information.
If txtPassword.Text.ToLower = "test" Then
'Create a cookie
Dim cookie As New HttpCookie("UserInfo")
'Cookie variables
cookie("User") = txtUser.Text
[Code] .....

View 4 Replies

Prevent Dual Login Of Users In Web Application?

Feb 7, 2010

how do I prevent my users for more than one simultaneous login per account. I am using Vb.Net SQL.

View 2 Replies

Users Be Able To Access The Login.aspx Page Via SSL/HTTPS?

Feb 24, 2011

I have a site where users must only be able to access the Login.aspx page via SSL/HTTPS.Currently I run something like the following in my Page_Load():

If Not (IsSSL) Then
Response.Redirect("https://" + thisDomainName + "/Login.aspx")
End If

Is there a better way of doing this?

View 2 Replies

Create A Secure Login Form Which Can Avoid Double Users Log In?

May 3, 2010

I am trying to create a secure login form which can avoid double users log in with same user id from different locations. how can I create a secure login form. I have create a basic login form as below.

Dim conn As SqlConnection
conn = New SqlConnection(Source)
Try

[Code]....

View 8 Replies

Login Program - Add Users And Passwords Using Textbox On Windows Form

Oct 13, 2009

I am making a login form for my A2 computing work and have got that to work but i did do some of the work and now i want to know how i can add extra users and passwords using simply textbox on another windows form [Code]

View 4 Replies

Database - Where To Store Users' Information(personal Details - Username And Password) In Vb

Feb 16, 2011

I'm a newbie in visual basic. I'm doing a login system. I'm done with the GUI. but for the programming part, I want to know where to store new user's information along with the username and password. I've done research. seems like it has something to do with database. p/s: I'm looking for high security in storing data to prevent hacking.

View 1 Replies

Showing Database Information From Login?

Jan 13, 2012

I'm working on a project with includes a student login system and Staff control. This has been successful although i am trying to find out how to show specific user information from the student login.The project is based on students getting points for "good behaviour and attendance" which is controlled by staff who teach them and students can redeem the points on set prices e.g. from pens to cinema tickets.Here is my student login code

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
' Connects the .NET framework to the OleDb database and selects the file wanted for use

[code].....

View 5 Replies

Where To Store The SQL Database Login Information In .NET

Mar 11, 2009

I am new to development and I am looking for some pointers. I have a sql 2000 database and a vb.net app. Right now the SQL username and password to connect to the database is stored in the VB application which is not convenient since we must change the password periodically. The user opens the app and enters the username and password for the vb application. Using the credentials stored in the application to connect to the sql server, the app checks the username and password stored in a user table in the database to determine if they are allowed to connect or not. For various reasons, it is not feasible to simply have the application username and password be the same as the database username and password. We must have only one database username and password and it must be changeable. Like I said, it is now stored in the compiled application which is inconvenient.

View 1 Replies

Login And Read Information Off Of Specific Webpages

Sep 5, 2008

I am very new at this, but I am writing a program to log in and read information off of specific web pages. I have gotten serveral working already, but I'm having a problem with this one. Here is the code in question:

[Code]...

View 2 Replies

VS 2008 Saving Automatic Login Information?

Dec 6, 2009

I am trying to create a program that will have an option to automatically log you into a couple sites when you press the Start button. I have a separate form that you can open and put in your Username and Password for each site. There is a button that when you press it it is supposed to write to a file (C:DesktopAccounts.txt) you username and password so that when it is opened again you will not have to type them again. I had it working perfectly until I added some code so that it will remember if you had the check box checked and have the text box as read only (if check box is not checked). I even tried deleting the new code but it still will not write to the file, but it can read from it if I put the information in manually.

[Code]...

View 2 Replies

Authenticating User With AD

Oct 23, 2011

i am creating a login form (Win Form App) and would like to display the users in a combolist called CBXUserName and authenticate the user name and password (which the user will enter) against the matching user name and password stored in the active directory. if the user doesn't get it right for 3 times i do not want the workstation to lock.

View 5 Replies

Writing A Program To Login And Read Information Off Of Specific Web Pages

Sep 5, 2008

I am writing a program to login and read information off of specific web pages.I have gotten serveral working already, but I'm having a problem with this one.

<input name="DL_AUTH_USERNAME" type="text" size=10 style="font-size:9px;font-family:arial">Password:<input name="DL_AUTH_PASSWORD" type="password" style="font-size:9px;font-family:arial"><input type="hidden" name="next" value="/"></span><input type="submit" value="Go" class="button">

For some reason I can get it to load username and password but I cannot figure how to get it to click the go button.

View 4 Replies

Authenticating A User Against Domain Security

Aug 30, 2010

I am writting an application in VB 2008. The application will reside on a 'Manufacturing Workstaion'. The workstation is assigned a user ID of Prodxx. Once the workstation is booted up and the application is running the 'Operator" must login to the application. The users who login to the app must have a valid account on the domain. I need to validate the individual users against the domain security. Many Users will login and logout during the day.

View 2 Replies

Implement The IReportServerCredentials To Send The Login Information To Retrieve A Report Remotely

May 10, 2011

I took sample code to implement the IReportServerCredentials to send the login information to retrieve a report remotely but for some reason the implementation is error prone.

[Code]...

View 1 Replies

VS 2008 SSL Stream, Authenticating A Self-Signed Cert?

Sep 2, 2009

Im using the SSL stream class to connect to a server and authenticate their self-signed certificate. My authentication code gets an error: "RemoteCertificateChainErrors". When I drill down into the X509ChainStatuses, I only see a status of "UntrustedRoot" and status information of "A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider." This seems acceptable due to the self-signed nature of their certificate. I understand that I can ignore this error. However, Id like to do as much as possible to authenticate. I have a certificate from them. Ive been told to add their cert to my root certs somehow. How do I correct my code use this cert in authentication?

[Code]...

View 1 Replies

Database - Implement A Login System Using LINQ To Compare Information With An Access Table?

Sep 27, 2011

I have been requested to implement a login form into a friend's Visual Basic .NET application. He specifically requested that I should do this using LINQ to compare the input to a table in an Access database. I don't really know why he imposed these restrictions, but who am I to judge? However, the problem is I am not overly familiar with VB .NET, or LINQ.

View 1 Replies

Cannot Open Database Requested In Login 'Database1' / Login Fails / Login Failed For User 'sa'

Mar 1, 2011

I got the above error when i deploy my web application into windows server 2003. How do i resolve it? [code]

View 3 Replies

Forms :: Enter Login Details Login Page Just Refreshes Itself And Login Wasn't Proceed?

Dec 13, 2010

I had a problem with WebBrowser component. Basically, it works improperly when try to log in on one web-site (Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site). I am working with Visual Studio 2010 Professional. I created a simple WebBrowser trying to access the indicated web-site. The problem begins. Well, the website loads, but when you go to the login page (Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site) and try to log in, it doesn't work. I mean, when I enter the login details the login page just refreshes itself and the login wasn't proceed. The same login page appear with every login attempt. The is the current problem!I check with Google, it works. But, it doesn't work with Forex Trading Social Network | Online Forex Trading Forum and Social Networking Site! Why?

View 14 Replies

Administer Website (create New Users, Assign Users To Roles) From A Windows App?

Feb 9, 2010

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:

<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"

[code].....

View 3 Replies

VS 2008 Database Search - Using SQLClient That Loops Though All Users In A Users Table

Dec 29, 2010

I've got a code using SQLClient that loops though all users in a Users table inside each loop i want to preform another search in the UserOrders table, thus doing a count of all orders.

I get this error

HTML

There is already an open DataReader associated with this Command which must be closed first.

Here is my code

vb.net UserLists.Items.Clear()
Dim connection As New SqlClient.SqlConnection(My.Settings.ConnectString)
Dim command As New SqlClient.SqlCommand("SELECT * FROM Users ORDER BY PersonName",

[CODE]...

View 3 Replies

.net Desktop App : Log Users Application's Usage By Users After Remote Deployment?

Apr 3, 2012

1.I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back.

2.Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only.

View 2 Replies

Vb.net Desktop App : Log Users Application's Usage By Users After Remote Deployment

Apr 4, 2012

1. I�d like to publish a free vb.net desktop application for the users to download and use meanwhile I�d like to collect usage information ex: user ip address, user�s registration information, used features, time spent� if the user allows the report to be sent back. 2. Also , in order for the user to be able to use the application, he�ll have to register it then, everytime, before the application loads, it gets verified online that it was registered, maybe validate the registration information or a valid user name and password, no critical personal information. The target of this step is for the application to be used exclusively by the registered user and maybe on his computer only. Any alternative way to achive the target is just fine.

View 1 Replies

Get Path Of 'All Users' Desktop And 'All Users' Start Menu

Jun 10, 2008

I cannot figure out how to get this call to work.I have searched EVERYWHERE.MSDN is no help at all and the only thing I can find is this vb6 code that doesn't work in .net.I tried to convert it over but I've had no luck.Specifically I'm trying to get the path of the "All Users" Desktop and the "All Users" Start Menu.It would rock if anyone could help me out with this one.

View 5 Replies

VS 2010 VB 2010 With SQL 2008 Server Report - Pass Login Information And Selection Parameters To The Report

Apr 13, 2011

I just got into VB 2010 with SQL 2008 Server Report. I was able to create a report as my wish and it's vieable via direct url (URL). But I want to pass login Information and Selection parameters to the report. But I don't want to pass them thru URL, So I want to load them from the application (winform) and launch the report in iexplorer.

View 1 Replies

OLEDB Connection - Pull Information From Three Different Database Tables And Compiling The Information Onto One Screen

Jun 9, 2011

The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and runs the QueryDatabase() Function i am encountering an error of: "OleDB exception unhandled: No value given for one or more of the required parameters." This occurs on line 15 of the first code snippet. Can anyone explain this and/or identify any code issues if that is the cause.

[Code]...

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved