Security :: Building A Forum From Scratch - Registering Users To Database

Apr 6, 2010

I am in the process of creating a forum design from scratch, as my first official asp.net application attempt.

Overview:

I would like to handle this task in the following steps:

1) Get input from the user: txtLoginEmail, txtPassword

Form has been submitted:

2) Process inputs a) cut/trim white spaces

b) encrypt password by using SHA1 hashing method located in clsLibrary

3) Check the email address given against the database

Match: Display a message saying that the username already exists.

Doesn't: Add the email address and add encrypted password into the database

Question:

In my Register.aspx.vb code-behind file, inside of the question mark lines, how exactly do I check against
the database to see if that user exists in that database already? I thought perhaps storing the results in
an array and then looping through it to look for matches, but that sounds inefficient. I tried this idea
and after an hour I was unsuccessful. Below is my code for the class objects and pieces of code relevant to this task:

Database Design
---------------
UserID int IDENTITY(1,1) PRIMARY KEY,
UserEmail varchar(50),
UserPass varchar(50)
[code].....

View 4 Replies


Similar Messages:

Building A Forum Site?

Jun 20, 2010

I need assistance on the following issues, i am trying to create a site which involve forum , i need code for the following. or i need schema and data type for

1. last post

2. views

3. replies

4. user onlines

5.total post

6. thread.

7.last post like less than 5 minutes

View 14 Replies

Building And Using A Utility Class For Forum?

Jan 6, 2011

I think this may be a question for the architecture forum, but it feels a bit newb to me, so here goes.

I'm trying to write a utility class to use throughout my C# ASP.NET websites. I am having trouble getting intellisense to see the methods in my class. What I'm doing is creating a static class and putting it in a namesapce and with a using directive, importing that class into the code-behind of my web form. But it's not working. I would also like to minimize the visibility of the code i.e. use the least accessible access modifier necessary for use in my util class.

[code]....

View 6 Replies

Web Forms :: To Let Users In Forum Application To Send Messages To Each Other?

Mar 28, 2011

i am building a forum application i want my application users to be able to send messages to each other and application will show some alert that they have new message. I am a beginner i have no idea how to achieve this, can anyone please guide how to get started for this.

View 1 Replies

Security :: How To Integrate Security Code When Registering

May 4, 2010

How to integrate security code when registering?

Example: When do I enter data complete it 4 digit random number.

View 6 Replies

Security :: Get All The Users In A Certain Role From The Membership Database

Jun 7, 2010

I would like to collect all the emails from all users in a certain role. How would I do this ?

View 1 Replies

Security :: Password Registering As Malicious Input?

Aug 4, 2010

My app creates a randomly-generated password when an account is created. I just tried to log in with a new account, and ASP.Net treated the following password as malicious input:

vkx&#!n#

Do we know why this particular password triggers a validation exception?

Exception information: Exception type: HttpRequestValidationException Exception message: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$txtPassword="vkx&#!n#").

View 2 Replies

Security :: How To Create Roles For The Existing Users In Database

Jun 10, 2010

I am newbie to asp.net.I want to create roles for the existing users in my database. I dont want to use the membership provider database n roles provided with it.(i don't want to use aspnet.mdf at all)

I am create roles for my existing users n assign i wanted to assign the particular roles to a particular assign.

View 2 Replies

Security :: LoginView Switch To LoggedIn Template After Registering?

Mar 10, 2010

I got a loginview located on the master page hen i have a registering functionWhat I want to do is upon registration successful, I wish to directly switch to loginview template to assigned role which is member How do i do that using codebehind?

View 3 Replies

Security :: Unable To Use Existing Database Users And Roles, In New Web Application?

Jul 13, 2010

I am creating a Web Application in asp.net 2.0 and sql server 2005.I want to use an existing database.

I have created a login and a signup page. Then i replace the new SQL database (the one that is created automaticly by the visual studio) with the exiting database I have.If I create a new user, the new user goes to the database and I can login with the new user. I cannot login with the existing users.If I go to the asp.net configuration, I only can see the new users I have created, I cannot see the users that were in the database already and I can't see the roles also.

I can I make the new application to recognize the users and roles of the existing database?

View 9 Replies

Security :: How To Delete The Forms Users Of The Membership Service From Database

Apr 21, 2010

I had created a Membership ASP.NET 3.5 website and selected the Forms authentication. Therefore, I created several users with related information into the ASPNETDB database. Yesterday, I changed the website security to Windows authentication.

This morning, when reviewing the ASPNETDB data for another website, I still can see those Membership Forms users and their ApplicationIDs in the aspnet_Users and aspnet_membership tables. How can I delete those Forms users?

Another question: In aspnet_Applications table, I can see the ApplicationName (e.g. /WebPartsDemo) for the Web Parts websites. I have 2 ApplicationIDs in the aspnet_Membership table. I can not see only one ApplicationID in the aspnet_Applications table, but with an empty ApplicationName, i.e. / only.

Do I miss something when creating the Membership website? What is the ApplicationName for the Membership website?

View 2 Replies

Security :: Forms Based Authentication Allow Only Specific Users From Database Table?

Oct 1, 2010

I have the following implementation and I'm sure there is an easy way to do what I want to do but I can't figure it out.

1. I use forms based authentication to authenticate to my site

2. I use active directory to authenticate the users

3. I use the Allow Users="xxx" tag to authorize the users limited to the list that can access my site. (e.g.. even though Mary is an AD user she can't access my site unless I put her credentials in the allow users tag in the web.config file)

All is working well but I want to move the users access list (e.g.. <allow users="john" />" from the web.config to a database table so that I can create a user maintenance page for my admins to add and delete user access. For the life of me I can't figure out how to do this and I can't seem to find an article on it either.

[code]....

View 1 Replies

How To Create The Forum Database In Sqlserver

Feb 25, 2011

how to create the forum database in sqlserver. what tables & columns are required in it .

View 3 Replies

C# - NOSQL Database Selection For Forum?

Oct 20, 2010

i am developing a FORUM i am using asp.net, c# language for code. I have read a article about NoSql i inspired a lot from there advantage over RDBMS (sql) so i was thinking that should i use NoSql concept for Forum DataBase or not. I am not a expert in database. So can u suggest me should i use NoSql? Currently I am using sql(rdbms).

View 1 Replies

What Parts Of .net, C# And Database Should Use To Create A Forum Like Stackoverflow

Aug 26, 2010

I am a fresher and I have got a project in asp.net and c#. I have to create a forum, something like stackoverflow, so I have studied asp.net, c# and sql server 2008 but now I am unsure how I should start work on this project.

What technology and what part of asp.net, c# and the database will I use more? I have 3 days to study so I want to know which parts of asp.net, database and c# I have to cover in 3 days.It's my first live project, will I have to study any other languages or are the ones listed enough?

View 2 Replies

Security :: Finding Tutorials For Registering And Sending An Activation Link To The User's Email Address

Feb 9, 2010

I program in vb

I was wondering if someone can direct me to a good quality tutorial on the process of registering and sending an activation link to the user's email address. I can't seem to find any useful tutorials online!

View 5 Replies

Web Forms :: How To Make A Forum, Step By Step , In The Forum People Show Their Picture And User Name

Feb 27, 2011

i do knot know how to make a forum, step by step , in the forum people show their picture and user name

View 3 Replies

Configuration :: Building DataBase & All DataBase Object With Sample Data?

Jun 28, 2010

Recent we are deploy(Setup and Deploy) our Product which is develop in ASp.Net(C#) using SqlServer Here We Face one Problem i.e.

When we install the porduct there is no issue if we manually run the sqlScript file in sql server(manully we create the DataBase and All DataBase Object i.e. Table,StoreProcedure,Function,Views....& We are enter the Sample Data) But We know that is not the Right Approch.

Any one Can tell me the procedure "How to Building DataBase & All DataBase Object with Sample Data when we click the Install and set up file"

In Setup and Deploy wized it ask for any Dependence file for the application i have attach the Dependence file(.sql) but i am not getting any OutPut .

Is there any Command prompt Utility(SqlServer/VS Commandprompt) ?

View 2 Replies

Security :: Allow Admin Users To Access Basic Users Accounts?

Aug 26, 2010

Allow Admin Users to Access Basic Users Accounts?

View 4 Replies

Security :: After Successful Creation Of 3 Users On My Web Site Now Cannot Create Users

Dec 6, 2010

[Code]....

after successful creation of 3 users on my web site now cannot create users

View 9 Replies

Security :: How To Display Users And Number Of Users Online

Oct 12, 2010

We have implemented the ASP membership and roles..and we would like to display the users currently logged in and also display the number of users online so we can display that on the page. The list of users woudl only be available to our admins. BUt the number of users will show for everyone.

View 9 Replies

Security :: Building A Web Site That Has Two Masterpages?

Oct 18, 2010

I'm building a web site that has two masterpages - one for the average user/visitor and one for the admin. The admin logs in and is redirected to admins masterpage that has some special features. If the admin goes to one of the visitor pages, he/she is redirected back to the visitors masterpage and is automatically logged out (cannot reach the admin pages without logging in again). Is it possible to keep the admin logged in no matter wich pages he/she goes to on the site until the logout-button is clicked?

View 2 Replies

Security :: Automatically Add Users To Role Users?

Aug 4, 2010

I just realized after i created a test account i was not in any roles. Is there a way to automically add new users into the role Users? Have i missed this some where?

View 8 Replies

Security :: Building A Login Form Using Linq?

Oct 30, 2010

I need a login form (user/pass) using LINQ.

I need a sample code for this. Its urgent ...suggest how can i do it ASAP . any open project from where i can take the login part ?

any code you dont mind sharing ?

View 2 Replies

Building Application Framework For Database Web App

Nov 20, 2010

I am looking to build a web application from the ground up. I have done a bit of research, however I just thought I would post here to see what kind of responses I get. I will give a brief description of the type of application I am trying to build. It will be a database web app for managing clients and financials of those clients. The application will need a secure log on system for approximately 160 end users, with the ability to change permissions for each user given their individual rights.

Depending on the type of user created they will have access to 1 of 7 unique application modules within the app framework. A data dictionary will be designed and created prior to starting the project as the 7 unique application modules will have common database fields and custom relationships. Based on this information, what asp.net tools, libraries or books would you recommend using?

View 4 Replies







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