ASP.NET / VB ... Users Log On And See The Own Data Only?
Nov 19, 2011
I'm attempting to make a system that stores employees details...name address etc. I would like the users to be able to log on, see and change their own details only. Is this possible is asp.net and if so how? I'm really new at this so if you could keep answers as simple as possible.
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:
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",
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.
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.
I need to create an app in which different users will change data from a DataGridView. I was thinking to use SqlDependencies to automatically update changes.
I have tried the example from link bellow but it seems that something is not working properly.
[URL]
I want to mention that I am making this app in VB.NET
I have a project that uses a number of DataGridView controls. Most of the cells are of the DataGridViewTextBoxCell persuasion. I declare my controls like so:Dim MyCell as DataGridViewCell Later I specify whether they are DataGridViewTextBoxControls or DataGridViewComboBoxCells like so:
MyCell = New DataGridViewTextBoxCell MyCell = New DataGridViewComboBoxCell None of the places in my code require the ability for the users to enter their own values in the Combo Boxes. That is, they are either hard-coded or the values are gathered from other data within the application.
Currently, users can highlight a combo box control defined as shown above and begin typing anything they like. For example, I have one combo box that offers the user a selection of integers between 1 and 9. I can highlight the combo box cell and enter "Hello, World!" if I'd like.What does it take to disable this ability? I'm sure there's a property, but I have yet to find it. I have searched the Internet, and have found only the ability to have user-entered values added to the list and a stream of data-binding tutorials.
When it is installed on a machine, it will run for all users. But for some users, it is unable to get some data from the database. I have found out that if it is run-as either administrator,or in winxp compatibility mode, it works. But if not, then some users have the problem.The database is in the same C: drive location as the exe, and it doesn't change from user to user.The computer is using windows 7 professional 32-bit.
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.
I've got a website and we just had a huge jump in traffic. Now all of the sudden we're getting sql parameter errors left and right. We switched to a new sql server a few weeks ago and everything has been fine but the added traffic seems to be breaking us.I have a data access class that is called when each user trys to logon. It runs through several tasks before finally updating the users last login date and forwarding them to the administration section.
What I'm seeing from the trace logs suggests that when I'm logging in the first several tasks are using my data (lets say user=birk pass=word). But at some point the accessor class starts sending over the data from someone else who's trying to login (lets say user=abcxyz).Every connection we make to the server is closed when we're finished with it. I'm nulling out all of the accessor objects when I'm finished with them. But somehow different user data from different sessions are making their way into other peoples instances of the object.
I'm not using session/application/cache/viewstate to store the objects so I'm not really seeing how they could edit eachother... Its just really weird and I'm not sure how to even go about researching the problem.This is roughly the accessor class... I trimmed out some of the parts that weren't reliant to the issue
We are four in a team using a data entry application created using VB and MS Access as backend DB. The application is installed on all our PCs, but uses my PC as server. We enter data at same time. The application has been slow since we started using it. We were advised to increase the internet bandwidth, which we doubled, but the application is still slow. What can be done to increase the speed of the application to make work move faster?
I am wanting to create a registration algorithm for my applications. I would like to generate a number/value from the users hardware/os data and then use that to create a key.
I am wanting to get the users IP address (the logged in user will be running the application under there user context on there local PC), but many PC's in our environment have multiple NIC's that have been added by VMWare Workstation, I would like to exclude these type of bridged connections and only show the "primary" NIC on the PC.The following function will get the IPv4 address, however on my test PC it is returning the bridged connection and not the IP Address of the network facing NIC.
Shared Function GetIP(ByVal computerName As String) As String 'Dim ipEntry As IPHostEntry = Dns.GetHostEntry(computerName) 'Dim tmpAddr As IPAddress() = ipEntry.AddressList
[code]....
My users have a mixture of DHCP and static addresses so cannot limit the NIC to either of these connection types. We tend to have a 172.16.x.x IP range, so is there a way to modify the above function so that it will only return a 172.16.x.x address?
My form's KeyPreview is set to True. I want to allow my users to use the Enter Key instead of just the Tab key. I have the following code in my form's KeyPress event:
Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = vbkeyreturn Then
[Code]....
It doesn't like vbkeyreturn, which I used in Visual Basic 6.0. I think I must be close to having it right.
i am trying to get a list of domains' and users' name on a computer so that users can select to run a program in other identity, but I can only find the current user and I can't find any post about getting these. Is there any post or any Identity classes that can help me to get all users and domains?
When users run my vb2008 executable they get the windows security message "The published could not be published. Are you sure you want to run this software?"
Is there any way to get rid of this message when users run my app? Or do individual users need to change their security settings?
I'm writing a program in vb.net that automatically creates users from a database.It works fine, as long as there is no comma or there are no two spaces in the CN.
I am using the WinNT interface, so in fact it creates a SamAccountName and copies it automatically to the CN.When I create the entry manually in AD, I can add comma's and spaces without problems, so it should be a programming error.
My friend s doing an online project...He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site...i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN...
How do I register a vb program dll for all the users of a machine? I have admin rights and have tried to register the dll using regsvr32 . Its get registered and is functioning only for my user id. If some one without admin rights come and login then it is not working.
All I need to do is only allow the users to add new records, I am not using a datagrid rather a details form (i.e. individual text boxes etc...).
I do not want the users to be able to view current records or edit them. If I just used plain text boxes then that obviously would be simple but I've already designed my rather detailed forms using the data objects (so taking the fields straight from the Data Sources mainly because it saves me writing the connection strings and stuff.
Hope this is possible without going back to using normal text boxes and writing the connection string out my self, only because that's a long way back to go right now.
I'm writing an application that will add users to Active Directory. I'm trying to use this code to connect to the "Users" shared folder in AD
[URL]
However it adds the user in with the shared folders, instead of within the "Users" shared folder. Shouldn't CN=Users mean it will add it to the "Users" folder?
I have a rather popular application, and I was wandering if I could allow users to create add-ons for this software. I was unable to think of a method of doing this, and I do not know where to start. If you have any questions in order to provide a better response, feel free to ask.