Security :: Developing Simple Login Application Using 3 Tier Arch?
actually i was developing 3 tier login page application as following :
DAL which containes UsersDS.xsd
in UsersDS.xsd i created one select statement as (SELECT UserID, Name, Password
FROM Users
WHERE (Name = @Name)
in BLL class in have following :
UserBL.cs
[Code]....
Then i created login.aspx (User Interface )
[Code]....
But this did not work , it is just like it's not connecting to DB ..
View 4 Replies (Posted: Jan 25, 2011 11:43 AM)
Sponsored Links:
Related Forum Messages For ASP.NET category:
Security :: Use Login Control And In 3-tier Architecture?
I am creating the web site (storing the employee Info) in this I am using 3-tire architecture ASP 2.0. But I am confusing that how to use the login control in this and how it wills validate the username and password with table store in my database. In this I have two table (fk_tbluser and tblemployee). In fk_tbluser all named user will store (username and password) and in the tblemployee(employee no and password) table I am storing the password of employee login. When Named user will login in the portal it has to pass the Admin in the username and password which stored in the fk_tbluser table. E.G: username : admin password : admin password which stored in the fk_tbluser table. When employee will login in the portal it has to pass the employeeno as username and password which stored in the tblemployee table. E.G: username: 000001 password : employee(000001) password which stored in the tblemployee
Posted: Jan 19, 2010 06:26 AM
View 2 Replies!
View Related
Security :: PrincipalPermission With N-Tier Application?
I am writing a new application which has been seperated into layers (UI, Logic, Data Access). Right now all the layers are self contained in my application...which may be broken out at a later date. Also these layers have a seperate namespace as well such as BusinessLogicLayer, DataAccessLayer, etc... On my methods within the Business Logic and Data Access, I am wanting to use the Principal Permission Attribute. For example I have a class called State & StateCollection which holds U.S. State information such as name and FIPS code. One method called GetStates() demands that a user have a certain role. ''' <summary> ''' Gets all states and their associated information ''' </summary> ''' <returns>A collection of states</returns> <PrincipalPermission(SecurityAction.Demand, Role:="modifyPropects")> _ Public Shared Function GetStates() As StateCollection Dim dbConn As DataAccessLayer.DataAccessBase = DataAccessLayer.DataAccessBaseHelper.GetDataAccessLayer Dim dt As Data.DataTable = dbConn.SelectStates() Dim stCol As New StateCollection [code].... When I try to call this method from the UI the principal permission attribute specified in the business logic layer is ignored, and the states list is displayed. However if I do this instead: If HttpContext.Current.User.IsInRole("modifyPropects") and throw an exception it works. Thus, I know roles are getting assigned as this type of check does function.
Posted: Jul 06, 2006 08:50 PM
View 1 Replies!
View Related
Security :: Simple Login Function For Web Page?
i'm a begineer and i'm now learning how to develop a web page with asp.net in c# language.can anyone teach or show me a sample of login function which can put in my web page together with the page and database code.p/s: i do not use the MS sql server express in MS VS instead i using MS sql server 2005 as my database.
Posted: Jan 12, 2010 12:48 AM
View 2 Replies!
View Related
Architecture :: Developing A Simple System Notification Mechanism
I'm looking for a simple way of developing "System Notification" in an ASP.NET website, which will consist of two parts: Part 1 - The administrator with go to a special page and enter 3 elements for the notification: Notification Text (e.g. "System will be down for maintenance next Sunday 11/26/2010 from 1:00 AM to 1:30 AM Pacific Time) Starting date/time when the notification should be displayed (e.g. 11/23/2010 6:00 AM) Ending date/time when the notification should be displayed (e.g. 11/26/2010 1:30 AM) Part 2 - Once the user logs into the website within the above timeframe, the system notification message will appear on the home page. What would be a good architectural location for this? - A table? - An html page? - Part of web.config file? - A new notification.config file? - Where else?
Posted: Nov 22, 2010 10:28 PM
View 2 Replies!
View Related
Developing A Simple Online DBMS To Browse Database Online?
I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is : [Code].... I am sure this is not enough.. am I right? so what else I should include there?
Posted: Dec 06, 2010 11:37 AM
View 13 Replies!
View Related
Security :: Sharing Login Between Three Websites (application)?
I have a scenario with three applications: 1) Portal: where user executes login 2) Site1: after login at "Portal" user is able to use Site1 3) Site2: after login at "Portal" user is able to use Site2 I just need to execute a validation in Site1 and Site2, to validate if they (users) did login at Portal1. Something like (in site1 main page page_load). { if (notFromPortal) { //redirect to Denied.apx } } How can I do this in a simple way? With cookies? Does somebody have a url with sample? My security requirements are almost zero. I just wanna prevent that user put a url from Site2 in browser and see a Site2 page.
Posted: Jul 05, 2010 09:14 PM
View 1 Replies!
View Related
Security :: Application Using AD Form Authentication - Login Not Responding
I've encountered a problem with intranet ASP.NET Application using AD Form Authentcation. The login and authorization is built using this KB http://support.microsoft.com/kb/316748. It works fine on DEV but not in UAT and PROD. Basically, the problem is:1. In DEV, users see login page and they enter domain user name and password and login process happens with no issue. 2. But in PROD and UAT, the same application when the users see the login page (first time) and they submit the login form no response. The login button does nothing. The user closes the browser and come back to login page and it works second time. Strange, this doesn't happen in DEV. 3. Further, on DEV by changing the LDAP path to PROD or UAT, the users can still login the first time. It's only the PROd and UAT that seems to be a problem. Not sure whether it's IIS setting or domain policy or something else..... Not sure what's causing this issue. The only difference that I can see between DEV and UAT/PROD is: 1. DEV has no load balance but UAT and PROD has. 2. In DEV application is installed under Default Website and on PROD/UAT it's under new website. The IIS settings has been setup as per given KB. I
Posted: Aug 23, 2010 10:51 PM
View 1 Replies!
View Related
Security :: Structuring An Application That Will Feature Login Page?
I have a site I am working on, that will have a home page with a login control. I would expect that after logging in, access is permitted to only certain areas of the website. I would imagine that the properties set by the login control will determine which pages can be viewed. Does this make sense? I know that many other websites have this type of structure, just not sure how it is organized.
Posted: Jul 23, 2010 01:03 AM
View 3 Replies!
View Related
Security :: Login Form Rejecting Valid Login With Forms Based Security And Membership Service
I've set up a system with forms based authentication and using the asp:Login control. When I put in an invalid password I get the approriate invalid password message. However when I put in a valid password, it does nothing...just returns to the login page again. I'm triple checked the login info. There is no error message, and the invalid attempts counter doesn't increment. When I put a break point in the Login_LoggedIn event of the Login form, it hits it, but User.Identity.IsAuthenticated is false. I'm not 100% sure it should be true at this point, as I'm pretty new to .NET but it seems kind of odd. My user database is stored in a sqlserver 2005 db that already existed. I've added a new connection for it.In the authorization I have <authorization>deny users="?"/><authorization>
Posted: Jan 21, 2010 11:40 PM
View 2 Replies!
View Related
Security :: Get Login In Application Without Entering Username And Password In Digest Authentication
Foe getting Logon computer username i m using digest authntication mode. But when i browse website it's asking for username and password. while already windows login with the same username. I understood that in this auhtntication mode it's required. But r there any configuration with it i am not getting this Prompt ? Any group ploicy ?? For IE i have added website into trusted zone but still it's asking for username and password. R there any other way i getting Computer logon name in asp.net application. There are But only work when i run from Editor from IIS it's not retuning value.
Posted: Sep 16, 2010 10:15 AM
View 2 Replies!
View Related
Recommended Tier Framework For Web Application?
trying to switch to better coding practises, I am totally confused about which path to choose. For the past year I was just coding through classic asp coding methodology. Now I know about things as 3 tier custom 3 tier with Strongly typed data sets N tier applications Custom entity objects and so on Can someone recommend me an approach for designing web applications from these? Some book or tutorial reference with simple CRUD application that would help me. I am currently stuck with strongly typed data sets as I cant find CRUD tutorials with that approach. I would like to just choose the right approach and build on it.
Posted: Mar 01, 2010 07:24 AM
View 4 Replies!
View Related
Developing An Application?
I am developing an application in ASP.NET using VB.NETWhere is the best place to store connectionstring? I mean in web.config/any other helper class?How do I use connection pooling? How to comunicate b/w BLL and DAL during Data nsertion/Update/Delete/Select
Posted: Dec 05, 2008 01:34 PM
View 5 Replies!
View Related
Which Of The Two Design Patterns Should I Implement In A 3-tier .Net Application
I'm trying to decide which of the two factory patterns I should use in my Asp.Net applications: 1 : All DAL providers derive from same abstract base class DepartmentsProvider, which defines public interface of the class ( all the necessary CRUD methods for which derived classes (providers ) provide a concrete implementation ). BLL layer instantiates correct provider by calling DepartmentsProvider.Instance: public abstract class DepartmentsProvider { static private DepartmentsProvider _instance = null; /// <summary>[code].... In first case we implement new provider by deriving from DepartmentsProvider class, while in second case new provider is implemented by deriving from DBProviderFactory. What are pros and cons of each implementation?
Posted: Sep 22 10 at 18:33
View 1 Replies!
View Related
Architecture :: Handle Transactions In 3 Tier Web Application?
I' am trying to write a aplication using a 3 Tier Model Data Access Layer <--> Business Logic Layer <--> Presentation Layer But now i am facing a problem, i need to Handle Transactions i already found a interesting article [URL] but i have some doubts. For example when i need to iterate to a Grid in the presentation Layer how will i Use the Transactions?? [Code]....
Posted: Jul 02, 2010 08:16 AM
View 2 Replies!
View Related
DataSource Controls :: Should The SqlDataAdapter Be Used With An N-tier Application
I have an app that has logical layers. These are typical Business Object , Business Logic, and Data Access Layers done with C#. I also have SqlDataAdapters for my Grid View and Details Views. This makes me wonder if I am truly using my layers the way they should be used. The SqlDataAdapters specify the stored procedures to use for the update, select and delete commands in the aspx file. Would the SqlDataAdapters inherently by pass the logical layers? Are the logical layers do any thing with the SQLDataAdapter in place? Should I use the ObjectDataSource when working with Logical Layers?
Posted: Dec 03, 2009 02:40 PM
View 2 Replies!
View Related
Architecture :: Data Validation In A 3 Tier Application?
Say you have a form designed in Silverlight(Front end)-Asp.NEt(business layer)-SQl(bakcend)Should data validation occur on all 3 layers or just the presentation layer or a combination of the front end with the other 2 e.g. validating an email address? I'm trying to undestand as to why if data has been validated on the presentation why further data validation would be necessary especially if there would be large amounts of data being validated and this could potentially slow down database transactions?
Posted: Aug 31, 2010 12:08 PM
View 4 Replies!
View Related
Developing Chat Application Using Vb.net?
i am developing chat application using vb.net and asp.net where i am having a div tag inside which i am displaying the messages posted by the online users what my problem is when the messages are more and exceeds the height of the div tag then i am not comfortable to view the previous messages because i have set the scroll bar position to always to be pointed to bottom. [code]....
Posted: Feb 12 10 at 7:03
View 1 Replies!
View Related
MVC :: Developing A Small Application
Can anyone developing this small asp.net mvc application. Login Page: User Logs in through login.aspx page by providing username and password textboxes and clicks on login button. Based on the valid credentials the user is redirected to the DashBoard. MasterPage: All the pages will be using MasterPage which has the following tabs. Activity Tasks Dashboard Page: The user will be redirected to this page after login page which displays the Activities and Tasks in 2 different gridview. Activity Grid will display: Activity Task ActivityDate On click of each of this activity the page should display div popup menu with the following: Show Activity Details Add Activity Details Edit Activity Details Search Activity On click of the above listed links the user will be shown a Popup of the appropriate aspx page
Posted: Feb 12, 2010 04:59 PM
View 5 Replies!
View Related
Developing A Usermanagement For Web Application ?
I am developing a usermanagement for my ASP.NET Web application. I Used Website administration Tool as custom forms in my application.Currently i am Setting folder based permissions to the Roles.After that when the anonymous user click on a menuitem it will redirect it to the login page. I want to change the redirecting page to another one that showing 'The user have no rights to access this Page'.How can i redirect it?I am new in asp.net.
Posted: Feb 4 at 5:33
View 1 Replies!
View Related
Web Config - Where Should Connection Strings Be Stored In A N-tier Application
I have an ASP.NET project which is pretty n-tier, by namespace, but I need to separate into three projects: Data Layer, Middle Tier and Front End. I am doing this because... A) It seems the right thing to do, and B) I am having all sorts of problems running unit tests for ASP.NET hosted assemblies. Anyway, my question is, where do you keep your config info? Right now, for example, my middle tier classes (which uses Linq to SQL) automatically pull their connection string information from the web.config when instantiating a new data context. If my data layer is in another project can/should it be using the web.config for configuration info? If so, how will a unit test, (typically in a separate assembly) provide soch configuration info?
Posted: Sep 29 10 at 20:00
View 3 Replies!
View Related
C# - N - Tier Architecture Approach - Web Application Clearing Confusion
Well i want to know how many architecture approaches we can use in asp.net web application. i was asked about it. i told him that i use a appcode for dal and bal and the presentation layer. but he was not convince. basically i want to ask what web application architecture an asp.net web application guru would use keeping in mind the different metrics ( i am talking minus web services or any SOA thing)
Posted: Aug 14 10 at 6:35
View 1 Replies!
View Related
DataSource Controls :: Retrieving Of The Data Using 3-tier Application?
but i have a problem to retrieve value from the database in the textbox using 3-tier application. ] in the App_data i have following folder. 1> employeeBAL in this i have 1class file called empbasicinfoBLL.cs 2> employeeDAL in this i have test_data.xsd in the basic details folder i have one page Basic information(employee basic info) in this i want that when user will log in the site [using username and password] after successful login when user will click on the Basic information then he will able to see his [name, employee no, first name, last name] etc on the page [i don't want to use grid-view to retrieve the details becoz i am using the table in this i am using Lable and Textbox for each] and this data should come from the EmployeeBAL.
Posted: Feb 06, 2010 02:51 PM
View 1 Replies!
View Related
|