Confirm Someones UserID And Password To Log Them Into Another System?
Dec 20, 2011I have a computer on a network and via windows forms i want to confirm someones userID and password to log them into another system.
View 1 RepliesI have a computer on a network and via windows forms i want to confirm someones userID and password to log them into another system.
View 1 RepliesI want to set username & password in a website, like [URL] and want to submit the page.
This should be done automatically when i click a button on the simple form in VB.net.
I'm using following code, but its not working:
Dim objIE As SHDocVw.InternetExplorer
objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
[Code]....
how to create confirm password..
View 4 RepliesI have this string
mainString="/MyApp/ViewPage.aspx?userId=admin&password=1&id=975"
I am getting value in mainString using this code
Dim mainString As String = Request.QueryString("dest")
And I have two sting variables
1)strTempUsername
2)strTempPassword
In these variables I want to store userId and password values from mainString.
So for this requirement how I write logic in code
Dim arrArray() As String
'/MyApp/ViewPage.aspx?userId=admin&password=1&id=975"
strIndexq = mainString.IndexOf("?") ' Check QuestionMark Exist or not in mainString
If strIndexq > 0 Then
Dim strTemp As String
[Code] .....
Here I am getting userId and password but in this code I will get problem when after ? if userId and password starts wit capital letters and password maybe contain characters like "1&a"
And after getting userid and password. I want to remove userid and password from mainstring. So I want mainstring look like:
"/MyApp/ViewPage.aspx?id=975"
I am trying to change the "logon as" userid and password for a service on a remote machineMy user is a domain admin Here is the code I am using...
Dim wmiScope As ManagementScope
Dim wmiConOpts As New ConnectionOptions
wmiConOpts.Impersonation = ImpersonationLevel.Identify
[code].....
i have a login form in a banking project.i set a userid and password for this login form and i did the code accordingly,it works good.In my form there are two fields namely:Userid and Password and a button named Login.
But i cant get any idea about what to do when the user wants to create their own userid and password?
I think i need to add a few more buttons to enable the user to create their own userid and password but i cant get the idea......i need some help.
Again,if i allow the user to create their own userid and password then anyone can use my project by creating a new account.........
Hence i am totally confused how to go with this.I need some urgent discussion so that i can get through this problem.
Design a form, which contain a TEXTBOX control that accept a UserID input, with a CommandButton control to perform a validation based on the criteria listed below. Display a Message on whether the UserID is Valid.
Criteria:
The UserID must contains SIX digits follow by a single character, limit the entry to a maximum of seven characters only.
The postfix character of the UserID is derived from the summation of all the six digits divided by seven and using the remain as followed:
Remain
Character
0
A
[Code].....
is there a code for showing my system login/logon password?i am using visual basic express 2008 /Forms.
View 8 RepliesI need to get the userId of the logged in user in ASP.net, I can use
System.Web.HttpContext.Current.User.Identity.Name
to get the name, but how do I get the userID?
I tried (GUID) and Membership.GetUser as I found, but none seem to work.
I am connecting to a Microsoft Active Directory server in a DMZ from my .net application (asp.net VB .net 4.0). I need to create a new "inetorgperson" in an orgunit called "SingleCustomerAccount".
I have had to use the System.DirectoryServices.Protocols namespace for all the work, because the ADSI classes (System.DirectoryServices namespace) wouldn't work across the DMZ properly.
Anyway it's been working fine connecting to Active Directory on Windows Server 2003 R2; however we're running tests against Active Directory on Windows Server 2008 R2 (2008r2 in native mode for forest and domain) in order to upgrade.
My existing code to create a user does not work.
System.DirectoryServices.Protocols.DirectoryOperationException: The server cannot handle directory requests.
at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32
[Code].....
I want to change or reset the local admin password of the opreataing system(win xp) using vb.netIs it possible?
View 10 RepliesI'm creating a web project for one of my uni modules using Visual studio 2010. I'm using asp.net membership and have all of my sql-server tables set up correctly (I'm pretty sure).I have a form that I have created myself that inserts into the database using sqlDataSource.insert(). I had some problems initially with not being able to insert any data into the table at all, but I have cleared that up.My problem now is that I need to insert the currently logged in user's userID into one of the columns of the table. But every time I hit the submit button, I am told I cannot insert null values in the userID column.
I can retrieve the userID using this snippet:
Dim userID As String
Dim memUser As MembershipUser
[code].....
I am currently learning .net and am building my first real website using .net.I was just wondering if people considered it ok to use the generated membership UserId in the query string? and also to use this as a foreign key in a database to link relevant information to this user?
View 3 RepliesUsing the following code, a user inputs a date into a textbox control and then clicks a button. A new record is created in table [rms_Report] and then I retrieve the ID of the record that was just added. I pass this ID onto page "CreateReport.aspx" via a response.redirect and query string.
I need to retrieve the UserId of the currently logged in user and insert it into table [rms_Report]. I need this to occur after the new record is inserted, but obviously before the response.redirect. I know how to retrieve the UserId, but I'm not sure how to incorporate into the other code.
ASPX
<asp:SqlDataSource ID="ReportDataSource" runat="server"
OnInserted="ReportDataSource_Inserted"
ConflictDetection="CompareAllValues"
[Code].....
I want to count length of a userId and change the string to that many asterisks. I also want to take the account number and replace all characters except the last 4 XXXX.
View 2 RepliesI have developed an Access database and would like to display userid from the user table on the welcome form.
View 1 RepliesAfter a user takes some action, it is sometime necessary to confirm that the user is sure that the action should be takes. Classic example is if the user attempts to close a form which is 'dirty' or not saved.What is the preferred way to do this in .net?
View 3 RepliesI need to access (windows apps) the file with a specific account (file located on a share) something like this: Dim myFileInfo as FileInfo=New FileInfo(FileName) ,UserID,Password.
View 4 RepliesHow to get userID of current user logged in from server using asp.net vb?
View 2 RepliesI have one table here with a list of UserIDs, Users, and ClientCodes.Each user can be assigned a client code to view that client's data else where.Right now I have to change it for everyone via SQL Server and actually going into the table manually, but I'm trying to make a simple little program that will let the user change it themselves.All I need is a textbox that pulls the user based on a certain UserID from the table, and a drop down list that will not only show the current ClientCode they're set to, but allow me to change it and save that change to the table in the database.What's the best way to go about this? I tried using the wizards but I guess that's not the best way to go about it.I have it displaying the correct user and their current ClientCode but that's about it.
View 14 RepliesI need to add a confirm delete action to a grid. the problem is the way the "Delete" link is rendered.
my grid is built in code behind in vb.net.i have this
colDelete.AllowDelete = True
colDelete.Width = "100"
AddHandler CType(gridSavedForLater, Grid).DeleteCommand, AddressOf dgDeleteSelectedIncident
and the sub is the following
[Code]...
i need to add a javascript confirm dialog when this sub is called. i can do it with a windows form messagebox but that does not work on the server.
The code i have so far inputs the users username and pas that they inputted into 2 textboxes. Next the user hits login and it submits the info. Here is where i have a problem. Some users are already logged in when they get to the site, this is a problem because i need to make sure they are logging in correctly. Here comes another problem, lets say they log in correctly, how can i know that the login was successful?
Simplified:
1) How can i find out if the user is already logged in so i can log them out.
2) If they are not logged in, and they log in successfully. how can i confirm that?
If there is any other way to login without web browsers?
'Code to enter the user and pass into the webpage
WebBrowser1.document.GetElementById("Username").InnerText = TextBox1.Text
WebBrowser1.document.GetElementById("Password").InnerText = TextBox2.Text
'Code to click login on the webpage
WebBrowser1.document.GetElementById("submit").InvokeMember("click")
I have this in my form closing event:
For Each FileFound As String In Directory.GetFiles(App_Path() & "tmp", "*.txt")
File.Delete(FileFound)
Application.DoEvents()
Next
For Each FileFound As String In Directory.GetFiles(App_Path() & "tmp", "*.txt")
File.Delete(FileFound)
Next
I used to run through an ultragrid with a for each loop and that took forever, I stumbled accross this way and it's much faster but I noticed today I still have some straggling .txt files after the form closes at times. Is there a way to actually verify all the files have been deleted before closing the form?
I ran the same for each loop twice to work it out but not sure if that works or worsens it. Also, I'm not entirely sure what that application.doevents does as I initially thought it would finish all above lines before continuing but that does not seem the case. Anyway, these .txt files files are about 500KB and up to 1000 of them at any one time so it's not instant but it's still pretty fast, faster then looping through a grid.
I've spent a couple of hours trying to find the answer to this, and although there are tutorials all over the 'net none of them work for me (or I am too n00b to understand what they're telling me.I'm creating users in asp.net using Membership. What I want to do is add the generated UserId to a column in a custom table I've created, to link the stuff in the custom table with the user created in aspnet_Users.
[Code]...
Well, I have a form called customers. Login form and mainform.
So my clients want to have an option that explains this: If a user enters information in the customer form, then that information has to be confirmed by admins panel.
Get me well. When application program loads with a limited user, I set some buttons hidden so that only admin can see it when they log in. so in that case, users are not capable of inserting anything in the customer form.
But this time they want users to insert information then the information goes to administrators to confirm the information...if admins accepts the information, then information is then goes to customers table in database. If they don't confirm it, then that information will be ignored.
am using vb.net 2008 with sql server database.
I have a form where a user can delete a record, and I want a pop up message where the user has to click okay to confirm the delete.
Delete button:
<asp:Button ID="btnDelete" runat="server" Text="Delete" UseSubmitBehavior="false" OnClick="btnDelete_Click" OnClientClick="confirmation();" />
Confirmation function:
function confirmation() {
var answer = confirm("Are you sure you want to delete? This action cannot be undone.")
}
So right now, clicking the delete button executes the btnDelete_Click Sub in the code behind regardless of whether you click okay or cancel in the pop up box. I know I can add if (answer) { -- some code here -- } in my javascript function, but is it possible to use javascript to execute code from the codebehind? Or is there another way to do this?
If I have a form in my application that has a datasetview and allows users to edit entries, how best can I present the information back to them to show them the changes that they've made, and ask them to confirm changes?
View 3 RepliesI am working with a .Net 1.1 web application. There is a Save button that, when clicked, will pop up the Javascript confirm box. Once the user clicks OK a long running process is kicked off. We would like to show a busy indicator when the user clicks the OK button of the confirm dialog.
View 3 RepliesI am trying to get a confirmation box to display when the exit button is clicked. The problem is, my form is closing even when you click the "NO" button.
Here is the code:
Private Sub exitMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitMenu.Click
MessageBox.Show(
"Are you sure you want to exit?", "CONFIRM", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If (Windows.Forms.DialogResult.Yes) Then
Me.Close()
ElseIf (Windows.Forms.DialogResult.No) Then
Exit Sub
End If
End Sub
how I could create a pop up to confirm downloads in a web browser?
View 4 Replies