Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










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 :: Login Sql Statement / Tier Project A That Required A Login Page>
i doing on a 3 tier project a that required a login page, Im not sure how the flow go for the 3 tier...This is my BLL

[Code]....

This is my DAL

[Code]....

And lastly here is the aspx page

[Code]....

When i try to insert my NRIC and password, it's like not passing through the statement, it just say login sucessfully eventhough i put the wrong NRIC/Password/Not valid..

Posted: Jan 11, 2011 09:43 AM

View 3 Replies!   View Related
Developing A Simple Web Application Which Display Questions And Multiple Choice Answers And Calculate Result
i am new for asp.net. i want to develop a simple web application(asp.net+c#) which display questions and multiple choice answers and calculate result. i want to know which one is the best way for me to do it.i want to use linq to sql.

Posted: Sep 3 10 at 17:30

View 1 Replies!   View Related
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 passwordwhich 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 :: Setting The Password For The Login Control For Developing?
To speed up my login when developing , I would like toset the text for the password textbox soallI have to do isclick thelogin button at runtime.Also is there a debug/release flag or something like that , that can be used to run code for development only?

Posted: Apr 14, 2010 08:16 PM

View 3 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
Security :: Finding Simple Code To Login And Logout?
I am trying to find a very simple code that allow users to login and logout using C# asp.net 2008.

I used to compare the cookies with session ID, it worked fine but I could not find a way so the user can logout.

Posted: May 29, 2010 09:16 AM

View 3 Replies!   View Related
Security :: Simple Admin Authentication With Login Page And Web.config
i want a simpe login systemm using webconfig file and one login.aspx page.

Posted: Mar 31, 2011 04:40 AM

View 3 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 scenariowith three applications:

1) Portal: where user executes login

2) Site1: after login at "Portal" useris able to use Site1

3) Site2: after login at "Portal"useris 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 canI do this in a simple way? With cookies? Does somebodyhave 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 :: Use Windows Login (name / Password) For Application?
I have to use windowslogin (name,password) for myapplication.(Intranet)

string strHostName = System.Net.Dns.GetHostName();

It works fine on my system but use the ulr on any other system, it returns the same result(i.e., MY System's name).

Posted: Dec 30, 2010 10:14 AM

View 10 Replies!   View Related
Security :: Login A User From .NET Application And Keep It Logged In ASP?
We are developing for a customer a series of .NET intranet applications currentlydeveloped in ASP. However we would like to avoid the users the annoyance of having of login twice when they pass from one .NET application to an ASP one, Is there any way to export the session data from one application to the other?

Posted: Mar 11, 2010 11:42 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 ahome 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 otherwebsites 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 :: How To Integrate Application In Windows Login Screen
how to integrate a asp.net application in windows user Login screen?

Ihave a asp.net 2.0 application. Users can able to run this application from windows login screen before they login.

Posted: Jun 20, 2010 06:35 PM

View 1 Replies!   View Related
Security :: Login Information From ASP Ticket To Desktop Application
i have a secure ASP.net application ,login page and all these stuffs, i want to create a windows desktop application for some resones but i want to use the same security of the asp.net , is there anyway to get the login information of the asp.net to login to my windows desktop application?

Posted: Jan 23, 2010 05:37 AM

View 1 Replies!   View Related
Security :: Login In Asp Application Using Active Directory Username And Password
i want to login with window username and password using active directrory in my asp.net application.

Posted: Feb 08, 2010 06:25 AM

View 3 Replies!   View Related
Security :: Cannot Login To The Application If The Clients System Date Is Wrong
After deploying our web application, one of the user was not able to login to the application. After checking, we could realize that his system date was worng, It was a greater than current date. If the system data was less than the current date we can still login. We are using asp.net membership

Posted: Feb 18, 2011 11:44 AM

View 2 Replies!   View Related
Security :: Form Authentication For Multiple Login Page In Same Application?
I have created a web application which has two section user and admin. Admin files are within
~/admin folder and user files are in ~/User folder. Admin and user has two different login page within respective directory.

Now I want two apply form authentication for admin and user section. Is it possible to apply form authentication for two different section in a web application?

Posted: May 29, 2010 10:09 AM

View 4 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 theLogin_LoggedIn event of the Login form, it hits it, butUser.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 yearI 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 objectsand so on

Can someone recommend me anapproach 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
Architecture :: Connect Different Server In 3 - Tier Application?
I want to develop a three tier architecture app.I have no idea when weplace our BLL and DLL code in different server how to connecct this BLL and DLL code to our Website(UI).

Posted: Nov 01, 2010 11:24 AM

View 4 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 validatedon the presentationwhy 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
Security :: Using Membership Classes In 3 Tier Architecture?
Can we use membership class in 3 tier architecture? Actually i want to use ASP.NEt's login control and membership for authentication. Can it will be possible in 3 tier using membership.

Posted: Nov 03, 2010 12:40 PM

View 5 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
Web Application Architecture Performance In Single And Many Assemblies One For Each Tier
I'm building a new n-tier web application and I would like to know the performance differences between developing my tiers in one single assembly (each tier with its own namespace) or into different assemblies, one for each tier.

Posted: Aug 2 10 at 18:20

View 1 Replies!   View Related
Visual Studio :: How Many Layer-Tier In LINQ To SQL .net Web Application
I have question about N-tier architecture. everyone about 3-Layer architecture these are:1). UI Layer, 2). Business Layer, 3). Data Access Layer.i already have worked on this.Then i heard about LINQ to sql. please tell me how many layer an web application should contain.As my knowledge. if i use LINQ to slq then i have to worked only 2-Laye

Posted: Apr 01, 2010 03:11 PM

View 9 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
Create A Strong Name Key(snk) For Mulitiple References Dll In N-tier Application?
how to create a snk for all existing dlls(multiple) in n-tier ASP.net application?Ihave created a asp.net application using n-tier. My web layer contain refrences of all layers(data,facade,core,common).but whenItry to create strong key of web layer it throws error as"refrences assembliy can not have Strong name".

Posted: Mar 18, 2011 12:04 PM

View 4 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved