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


ADVERTISEMENT

Clock - UTC - Give The Users Current Time Zone/local Time

Jul 22, 2011

So I currently have the following:

2 timers

2 labels

1st label is "Clock" this pulls the time from the users current time zone/local time

2nd label is "UTCClock" Which would be UTC time

Now I have this for the first label: clock.Text = Format(TimeOfDay, "hh:mm:ss tt")

Which would give the users current time zone/local time. As for the UTC.. how would I add in for the UTC time from where the user is located at? I did some searches.. but couldnt find what I was looking for.. IM pretty sure its not as easy as getting the users current time zone/local time.. So im assuming that Theres a "bit more" code into getting UTC time..

View 5 Replies

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

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

Windows Form Multiplication Test Loop, Math And Cath Very Simple Program?

Nov 26, 2010

I think for you my problem is very simple..I have done the same program in console mode without problem, now i try into windows form...

I generate by random 2 number A&B I multiply them and I will compare it with the result in my textbox3

if it the same as the computer has calculated il will show you congratulation, however i will say try again

I have a problem to calculate the sum, A&B are well generated but nothing in Calc Result

When Calc was working when I write nothing in the textbox3 and i click on Verify it show the msgbox congratulation.I'm looking just for this step, I've fixed the other issues And another things When It's right I would like to random another number for A&B after closing the msgbox, how can I processd ?

[Code]...

View 3 Replies

Get The Difference Of Login Time And Logout Time?

Apr 10, 2012

How to get the difference of login time and logout time.(Eg. Login Time = login1 and Logout time = logout1).

what will be the format of the value.

View 4 Replies

Upload A File At The Same Time That Other 20 Users Do?

Aug 19, 2009

Is there something like an ftp server that supports multiple users to login?What i mean is that i need something like an ftp server where can login and upload a file at the same time that other 20 users do.(using vb.net code)

'Upload a file to an ftp server
Dim FTP As Net.FtpWebRequest = CType(Net.FtpWebRequest.Create("ftp:myserver.com/file.txt), Net.FtpWebRequest)
FTP.Credentials = New System.Net.NetworkCredential("Username", "Password")
FTP.Method = System.Net.WebRequestMethods.Ftp.UploadFile

[Code]...

View 5 Replies

Accessing Same Record By Two Users On Different Machines At The Same Time?

Mar 4, 2009

I am developing Client/Server application in Visual Basic 2005 with back-end SQL Server 2005 Database.I have lot a users to access to this application.I have a problem with accessing same record by two users on different machines at the same time.For example: Two user fetches the same record display on the machine.Now both have same data on the machine. The first user modified and saved the record and after some times another saved the data without modified or modifed some other columns. Now the last user who modifed the record contains the old data.

View 5 Replies

Performance - Give Users A Certain Time To Enter Something?

May 15, 2010

I'm making a speed game in VB.Net (Console Application) and users have a certain time to press a certain key. So how can I give the Console.ReadKey function a timeout without just waiting until a key was pressed?

View 2 Replies

Capture The Exception When Two Users Press A Button At The Same Time?

Nov 13, 2011

Im Building a auction application and i need to catch the exceptions i.e if two people press the bid button at the same time i need to capture that exception and figure out who was has the highest bidder out of the pair of them then show the relevant message, my question is how can i achieve the above?

View 2 Replies

VS 2005 Users Authentication - Authenticate Each User Every Time

Apr 12, 2010

I want to authenticate each user every time. in vb 6.0 i used this

Private Sub cmdIngresar_Click()

Dim rs As New ADODB.Recordset
Dim strConsulta As String

[CODE]...

So, my question is how could i modify it for vb2005, because vb2005 don't use recordsets?

View 4 Replies

VS 2010: Prevent Multiple Users From Accessing File At The Same Time

Jul 15, 2011

I have written a program in VB 2010 that dumps documentation info into an Excel file. Basically, the Excel file is a log file that keeps track of revisions for design drawings at an engineering firm.

There are approximately 20 people that have access to this program. However, I've run into issues where multiple users may be using the program and trying to send info to the Excel file at the same time. The Excel file is set to read only. My program opens the file with write access, and dumps the info into the appropriate cells, then closes the file. If one person is in the process of using the program, it causes an error with another persons system if they try to use it at the same time.

In some cases, it causes my program to crash, and it leaves the Excel file open on someones system.

Typically, my program would only have the Excel file open for a couple seconds. So, the issues mentioned above are rare, but they do happen.

I'm looking for ideas to prevent this issue from occuring.

View 7 Replies

How To Login The Site At The Same Time

Jul 17, 2009

I am making a program with some account details stored and the webbrowser so that I could be able to access to the website. I would like to know how I can be able to login the same site at the same time with many accounts when the account details stored on cookies?

View 7 Replies

Login To Site At Same Time?

Jul 17, 2009

I am making a program with account details stored and the webbrowser so that I could be able to access to the website. I would like to know how I can be able to login the same site at the same time with many accounts when the account details stored on cookies?

View 5 Replies

User Login Time Restriction?

Jan 1, 2012

I have shifts in my application. I want to restrict the time that a user can log in to their defined log in time span. Shift 1 which is AM to PM is working fine, but PM to AM check is creating problems. This is because the second shift starts at 5.00 PM and ends on next day on 10.00am.

The user table structure is

shiftid, starttime, endtime
1, 6:00:00 AM, 11:30:00 PM
2, 5:00:00 PM, 10:00:00 AM

View 2 Replies

Find Difference Between Login And Logout Time In .net?

Oct 6, 2010

how to find difference between login and logout time in vb.net

View 2 Replies

Login Time Out Solution For Windows Form App?

Apr 14, 2011

I have a print driver Windows app that uses a web service to connect to an authenticate its credentials. But the problem is, I don't want a user to login every time they want to print. Basically I want the login part of the app to only pop up if the printing functionality hasn't been used in 20 minutes.

tell me what would be the best way to go about this? I'm unfamiliar with Timer functions. This app isn't always on. It's on briefly then closed. So I need a solution where the timer is set somehow on the computer.And I don't want to write data to a text file when it can just be edited..

View 3 Replies

Make A One Time Password Protected Login?

Apr 3, 2009

On form1.load it loads up form2.... Form1 is not enabled unless form2 is completed right. If completed right remember not to show form2 and enable form1.

View 11 Replies

Programmatically Find Out Last Login Time To A Machine?

Sep 24, 2009

I would like to a) programatically and b) remotely find out the last date/time that a user successfully logged into a Windows machine (via remote desktop or at the console). I would be willing to take any typical windows language (C, C#, VB, batch files, JScript, etc...) but any solution would be nice.

View 2 Replies

Syntax To Get The Value Of The Login Details Date/time In LAN?

Mar 23, 2011

Is there a syntax on how I can get the value of the date/time a user logged on their PCs?

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

Setting Global Variables Within Web Project On Login And Set Expiry Time

Dec 1, 2011

I'm developing a revised version of a system I have been using for years, but with all the advantages of .NET features that were not around when I first made this. It's proving a steep learning curve! So, when a user logs in through my Login.aspx page which simply compares username/password to Database record, the system creates a session variable containing the user's Username and various other things. There are two type of variable which will be common to all elements of this system
User Specific data, Username, Permissions, etc

Setting variables, drawn from a database of pre-set facilities which are setup within the system, some will determine which facilities work, how they work, and some will be dependent upon the User's permission. Obviously, I could set everything within the Session data, but that'd be inefficient wouldn't it? If I were to set these globally available variables in my App_Code, how would I go about setting this up so that, for example, those variables which require a database call, are set for the duration of the Logged-In session and do not require constant Database lookups? Further to that, those variables which are dependent on the session state, would need clearing on each LogOut. I am using VB.NET.

View 1 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







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