C# - Forms Based Authentication?

Jun 24, 2010

If I wanted to make sure that AUTHENTICATED users were denied access to Enroll.aspx and UNAUTHENTICATED users had access how should my "allow/deny users" tags be set in the web.config?[code]......

View 2 Replies


ADVERTISEMENT

If/then Based User And Password Authentication?

Apr 17, 2009

I am writing a program that accepts a user name and password (the password must show up as *s). The user gets three tries to enter the correct information before the program is closed. So far I have the password showing up as the password in clear text the first time and in *s the next two times. The authentication also fails even when I use the correct user name and password which are password and user for now.

Public Class frmPassword
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Static intCounter As Integer = 0
intCounter = intCounter + 1

[code].....

View 5 Replies

Securing ATM Based On Fingerprint Authentication?

Nov 3, 2010

In this project, I will develop a dotnet based application which can match and identify the fingerprints and implement the authentication process across ATM usage

View 2 Replies

Asp.net - Is Forms Authentication Totally Necessary

Aug 18, 2011

I'm writing an internal web application right now (with ASP.Net Web Forms), and it presents an odd problem. I have to be able to impersonate the currently logged in windows user, and execute a command based on their Windows Authentication to log in.. AND ... if they don't have Windows Authentication set up in the application I have to use to log them in, I have to be able to accept a user name and password. I also have to write the application in .Net 4.0, and secure it as much as possible. I got this to work by NOT utilizing Windows Authentication or Forms Authentication in the web.config, and instead setting session variables to guard against user accessing pages in the web app other that the log in. I did this by creating an oddly name session variable with a value based on their user name (windows auth or not), and then a secret session variable. The secret variable is in the web.config as a 256bit encrypted string, in which I decrypt, and set as the session secret. In order for the page to load, the first session variable can't be blank, and the second variable has to equal the decrypted key value... if the variables don't pass inspection, it redirects them to the login page. I set this up on every page, generic handler, and webservice method in the web app. I make the session timeout after a few minutes of no activity, and on log out, I set all session variables to nothing, and expire all cookies. (I also disable all cache).

My question is... Does this offer comparable security to that of Forms authentication? I have always used Forms authentication, but can't use it here. If I did, the users would have to reconfigure settings in IIS and in he web.config to toggle login procedures (From my knowledge, you can't use both Forms authentication, and windows authentication to manage the security of your pages and other web resources). With the method described above, I can accomplish the best of both worlds, but am curious about the security of my methods. Is there anything else I can implement here to assure the utmost security other that using forms authentication? Is it possible to accomplish the same level of security of Forms authentication without using it?

View 1 Replies

.NET Forms Authentication Doesn't Work

Mar 20, 2011

I have an issue with my .NET application and it can only be reproduced sometimes and only on client's location, which makes it extremely difficult to resolve. In the application the forms authentication is used. There is a login page to which every anonymous user is redirected. After user enters username and password, it redirects to DefaultURL or some predefined page. The problem is that sometimes when user enters correct username and password, it doesn't login, instead it just refreshes the login page without any error messages. After several tries of inputing username and password, user is able to login to the system.

See my login page Submit_Click code below:

Dim userName As String = tbUsername.Text
Dim password As String = tbPassword.Text
Dim returnUrl As String = Request("returnUrl")

[code]....

View 2 Replies

C# - Use Authentication In 'Forms' And As Well In 'Windows' For A .net Web Application?

May 14, 2011

We have an application in Access for UI and MS Sql server as Database server. We now decided to build a new application in web application for UI. This web application is only used by the employees who work for the company. But later we decided to host this web application on outside server. So the user (from this company only.) can able to login anywhere in the world. First I thought creating the web application using 'windows' authentication thinking we may be using it as an intranet web application. But now my manager asked me to use both 'Forms' and as well as 'Windows' for using this application and this web application will be hosted on outside server. I really don't catch his point of using both types of authentication.

View 1 Replies

Forms Authentication Add SQL Database Variable

Aug 29, 2010

I am using Forms Based Authentication I have extended the Forms Authentication Tables creating a custom table called Profile_Contact that holds the user's GUID, username, email address, and other information. I have another table called Profile_Account which holds company account information such as Company Name, address info, phone numbers etc. This table has a Key Field called IDProfileAccount.

[Code]...

View 6 Replies

Forms Authentication And Stored In A SQL Database?

Mar 9, 2012

The Intranet was done with forms authentication and stored in a SQL database. how I go about (if possible) authenticating a login in a vb.net project that queries the user settings from the ASP.Net database that was created on the SQL server for the forms Authentication.

View 5 Replies

Forms Completion Using Windows Authentication?

Apr 6, 2009

I am reading the article at: [URL].. Forms Authentication in ASP.NET 2.0". I am using VS 2008 and .Net Framework 3.5. I don't know if this makes a difference, so please let me know.

A user logs on to our system in the morning Based on their Windows Authentication, they can access several intranet applications. For a particular application, the user has to select their Organization or Position or Location.

Based on the user's Windows Authentication, once the user selects one of the three above and clicks a "Submit" button, a second page is launched that shows certain information about the selection based on the User's authentication.

For example, if User selects Organization, the following information will be returned based on the Organization THEY are a member of. They can not access information from OTHER organizations, ONLY their own based on their login credentials. This information returned as a result of the dropdownlist selected value includes: street address, city, state, zipcode, Bus. Unit #, etc. appears in labels on the second page.

The labels can be dynamically created at runtime. (I dont know if a User control can be created to do this, since the "Position" and "Location" will contain the same address information, and it doesn't matter at the moment). I just want to populate the labels on the second page (or on Postback) based on the User's log in credentials after they click the "Submit" button. Or, if they don't have to click a button, just have the information complete based on the selected value of the dropdownlist control.

View 1 Replies

Forms Authentication With Web.config Works On Dev But Not On Live

Feb 27, 2010

[Code] When I run this on my visual studio 2008 dev server it runs fine and works well. When I publish to IIS I always get Http 403 Forbidden Errors when trying to access any page on the site. There is 1 folder within my site that should be login protected called 'administration'.

View 2 Replies

VS 2008 Send E-mail Without Authentication For Servers Without Outgoing Authentication

Mar 28, 2011

as topic, i need to send an e-mail without outgoing authentication becouse server hasn't outgoing authentication.. how i can do this??

View 1 Replies

Windows.Forms Based Apps Vs WPF Based Apps?

Jun 21, 2010

what WPF based apps are?Is it an application that runs under Silverlight? If so, how?I know; Windows Forms based apps,console apps,DLL _ Class Library Projectsand I've had an introduction to ASP.Net.What I mostly want to know is, if WPF apps are for Silverlight then do they also run in a server based fashion like anASP.NET website would when you create ASP.Net webpages?Is it a way of creating what looks like a FORMS BASED application but it runs in a browser instead or what?Please enlighten me a bit further as I have no idea what WPF is all about.

View 3 Replies

.Net Forms Vs. Web Based ASP.Net Solution - Which Will Scale Better?

Nov 19, 2009

I am on a project helping to analyze the load a VB.Net WinForms application can take. This app has been in production for several years and has many many products on it. We plan to add more products but see the client footprint rapidly increasing. This is contributing the degradation of performance on the system overall.There is duscussion that moving the UI intensive portions of the app to ASP.Net it will reduce the client footprint and solve many of our issues.My question which of the following will scale better in terms of performance and load? ASP.Net(VB) Web based architecture VB.NEt WinForms 3-tier architecture

[Code]...

View 3 Replies

Select One Of Forms Based On The Name Variable?

Aug 14, 2009

I have several instances of one form loaded. They all have an instantiated variable "Name." How do I select one of these forms based on the name variable?

Code:
Public Sub MakeForms()
Dim x as New frmBlack(me)
x.show
End Sub

View 3 Replies

Forms :: Get Hidden Value / Tax From Combobox Based On Selection

Feb 17, 2010

I have a combobox populated from the DB with:

-ID
-State
-Tax

State is the only value that is shown.I'm trying to get the hidden value, Tax, from the combobox based on the selection but can't figure it out.

View 5 Replies

Forms :: How To Create Window Based Application

Feb 25, 2009

how to create window based application in vb.net

View 2 Replies

Create A Loop To Call Forms Based On A Value In ComboBox?

Dec 1, 2010

I am writing a program in VB 2008 and i need to be able to select different pages. i have a ComboBox with 15 values in it, and based on what value the user selects, that is the Form i want it to go to. for example, if i run the program and select the Value "electrical", then it will take me to the form that corresponds with that selection. [code]...

View 1 Replies

Forms :: Use Process.start Based On Settings File?

May 14, 2010

My first post! im quite new to programming but loving every minute of it.Basically i want to open another exe file from vb.net 2010. i can do it normally using

system.Diagnostics.Process.Start _ ("c:winamp.exe") if winamp for example is installed on another pc in another location i want to run it from my program but i want there to be sort of like a settings.txt file where you can edit the path to winamp and my program should first read the path set in the settings file and then open accordingly. how do i go about doing this?

btw it would be great if you could point me in the right direction for making a windows form where one can edit the settings file within my program without editing the settings file in notepad

View 4 Replies

IDE :: Create Classes And Forms Based On A Database Structure?

May 10, 2010

I am creating an Add-In that I want to create classes and forms based on a database structure. I can't find any information anywhere on how to programatically add code to classes. I know I can write out the files and add them to a project, but that would limit what I can do in the future. I would like the possibility to update a function in the future which would be impossible writing out a file and loading the whole thing back in. It would destroy any modifications made to the class, and since this Add-In will only be creating a framework, there will usually be modifications.

I got this line from the macro recorder:DTE.ActiveDocument.Selection.text = strDACode

But I like to keep Option Strict on, and this is late bound according to the IDE. There seems to be very little help on the IDE and how to use it creating Add-Ins. If I overlooked something please point me there, but I can find nothing. I don't know if it can be done, but I was able to do it in an Add-In for VB6.I would also like to add controls to a form, so if anyone can point me somewhere where it explains

View 3 Replies

VS 2010 Converting Forms Based Application To A Service

Apr 30, 2012

I have an application that I created a while ago. It's a forms based application that runs on one of our servers at work. The app works well, BUT at the moment, requires someone to manually run it, which means having the admin account always logged in, but having the server locked.Although it's a forms based application, for the majority of the time I don't need to see the forms, so can I safely make this run as a service (by adding the appropriate code), and hiding the forms?Also, is there some code I can put in to test whether the instance of the program was started as a service or from a user double clicking on the icon? If so, I'd like the user initiated instance to run with the forms visible.

View 2 Replies

CompileExecutable Function Working For A Windows Forms Based Application?

Nov 16, 2008

I refer to the CompileExecutable function at.>> [URL] I have attempted to try and get it working for a Windows Forms based application from about my 4th post in this thread.>> [URL] Has anyone had any success in using it or a variation of it? links to VB.Net tutorials see here.>> [URL]

View 1 Replies

Conditional Code To Open Different Forms Based On Dropped Text?

Apr 12, 2011

I am new to VB and I have two detail listviews with one full of items that can be droppedinto the other. I have three groups in Listview1 and I would like different forms to open up based on the group each dropped item belongs to. I was able to open Form2 on drop by adding Form2.Show() at the end of the ListView_DragDrop handler sub, but this opens forevery item and I want different forms to open depending on the ListViewGroup the item belongs to.I set the items and groups in the property windows and not in code; I do not know if this makes a difference. So here is the code I have on Form 1 where the listviews are:Public Class Form1

Private Sub ListView_ItemDrag(ByVal sender As Object, ByVal e As _
System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag, _
ListView2.ItemDrag

[code].....

View 2 Replies

Forms :: Beginner Text Based Game Location Handling?

Mar 18, 2009

I am just for learning purposes trying to develop a one player text based game.

I have a rich text box (GameWindow)
I have a text box (InputWindow)
I have a button (InputButton)
and a bunch of labels that aren't really important

I have two questions first is easy probably. How do i get InputWindow to respond to me hitting enter when text is in it?

[Code]...

But if i plan to have more that is only going to increase the size and code needed and im sure there is an easier way i just don't know how to do it.

View 1 Replies

Forms :: Customizing Queries Based On Radio Button Selections?

Apr 30, 2009

I am a new to programming, trying to learn vb.net, so I apologize if my questions are very elementary or my terminology is incorrect. I am trying to format a query to an Oracle table based on user-selected radio buttons on a Windows form (i.e. the query will return different elements from the table based on the radio buttons selected). The query results will be placed in a listbox on the form. My thought was to make a Property containing my query like so:

[Code]...

and then I have a sub that feeds this SQL property (containing the query) into an OracleConnection.My problem is that I don't know how to customize that query depending on what radio buttons are selected by the user. Is a Property the best way to go about this, or is there some other way that may be better?

View 1 Replies

Forms :: Populate Textboxes Based On Combobox Selection NOT Using Databinding?

Apr 27, 2010

how to go about this? I have a form, frm1 w/a combobox, cboLocations, which is being populated using a sql string. There is also a frm2 w/a series of textboxes and other comboboxes. I want it so that once a selection is made from cboLocations, the textboxes and comboboxes on frm 2 are populated with the corresponding data. Here is what I have so far:

frm1:
Public Class frmLocations
Dim conn As New SqlConnection("Data Source=f03d3s-dev01; Initial Catalog=dos_track;User Id=vbuser; Password=tran3;")
Dim depot_refnbr As Integer

[Code]...

What's happening right now is that I make a selection from cboLocations on frm1 and click on the OK button, frm2 loads, but none of the textboxes are populating and one of the comboboxes, cboDepot, shows the different data when you click on the down arrow, but it's not displaying anything it its text field when frm2 loads.

View 4 Replies

Initialize A New Instance Of A Class, But Pass It To Other Forms Too For A Wizard Based App?

Dec 20, 2011

As an ameture developer, I've never really used classes. However, I've been reading about using classes and automatic properties. I have therefore created a class which looks similar to this:

Public Class Quote
Property QuoteNum as integer
Property AccNum as String
Property Price as Decimal
End Class

The stumbling part for me comes in the way of letting form2 know which class form1 has initialized. There are in this example 3 forms to this wizard. If someone starts another wizard whilst half way through the first wizard we need to keep the variables seperate hence using the class. I think I'm along the right track, but maybe confusing myself a little.

[Code]...

View 12 Replies

Winforms - Controls Based Security In A Windows Forms Application Using .NET?

Sep 5, 2011

I need to implement, Controls Based Security in a Windows Forms Application using VB.NET. I tried google but did not get anything much to work with.

I would like if someone, could suggest some books or tutorials.

View 1 Replies

Create Small Windows Forms Application That Accepts Pen-based Handwriting?

May 5, 2012

I am trying to create a small windows forms application that demonstrates how a user can use pen-based input(ona Lenovo X220 tablet PC) to enter text (rather than typing on a keyboard) I am using Visual Basic in Visual Studio 2010.I think the control I want to add to my Visual Basic Project is the Microsoft InkEdit ControlThe instructions I see on other parts of microsoft websites refer to a .net framework componed called InkEdit. The instructions I found so far is to right-mouse click on the tool box, click 'choose items' and then select the Inkedit Control from the .NET Framework components.

View 12 Replies

Forms :: Display List Of Files In A Given Folder ( Ordering Based On User)?

Nov 16, 2011

I'm new to the Vb.net. To display the list of files in the given folder, need to processing the files one by one based on the user given the order/arrangement in form based interface.

How can do this in vb.net 2005 or any suggestion.?

View 1 Replies

Winforms - Color Code Rows In A Data Grid Based On A Gradient In Forms

Apr 20, 2010

I have a grid containing rows flagged with different priorities. I want to color the high priority rows red, low ones blue, etc. I'd like to set the shade based on a mathmatically calculated gradient rather than arbitrarily assigning colors to specific priorities. How can I extract a single color from a single point along gradient?

View 1 Replies







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