Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-04-2010, 11:16 AM   #1 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Question User profiling in ASP.net .. if its called so!


hey! geeks
This is my first post cause usually i get what i want simply by searching web.
but this time I don’t know what im searching for. So what could be a better place than thinkdigit forum.

So. i just want to know how to create a new user profile page using asp.net.
Like all those web sites where you register, and then website automatically creates a very personal customisable profile page. Like welcome user and all those stuff kinda orkut, facebook an all.

The point is I dont know what to call it. user profiling or user role management or adding new user.

im not new to asp.net. so please help me out. just tell me how its done regardless of difficulties.

im creating a web site i want to add user on em.

Hope you all get what im asking for. and im having a positive feeling with my very first post.

deepakgates
deepakgates is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-04-2010, 10:01 PM   #2 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

cmon anyone????
deepakgates is offline  
Old 30-04-2010, 10:46 PM   #3 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: User profiling in ASP.net .. if its called so!

Well....The question is not too clear to me. But it seems that you want something like user profile.

Well first create a page for login, there will be a label : Username and beside it a textbox for entering username. Similarly create a password label and textbox. And a submit button. Arrange them using table.

Now validate the username and password though database or using static username and password as string in if/else.

Now once the user gets validated, redirect it to a new page saying Welcome <username>. ASP.NET is stateless. So you can't get the value of username textbox by simply using form.txtusername etc. For this you need cookies/sessions.

This is just a simple example. All this are done though database.

I hope it's clear to you now
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is offline  
Old 01-05-2010, 12:12 PM   #4 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

thanks for your concern

okay cookie/session looks like new stuff to learn.

can you please explain the mechanism of whole process how its dun.

i mean to redirect users to its welcome page , the page has to be created beforehand.
is it??
and what if i want say 100 users then what i will have to create 100 welcome pages.


what i mean is how these sites like orkut works .. cause the pages and personal settings are created automatically as user registers for first time.
deepakgates is offline  
Old 01-05-2010, 12:30 PM   #5 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: User profiling in ASP.net .. if its called so!

No dude, you just need to make one welcome page, and make it dynamic.

Say for eg, :

Welcome <Text1.text>

Now if I login as Krishnandu it'll show Welcome Krishnandu, and if I login as deepkgates it'll show Welcome deepakgates.

Once the user is authenticated redirect the user to that page.
I forgot the redirect syntax in ASP.NET, but it's something like response.redirect("URL");

Say this is your login.aspx coding
if txtusername="username" then
if txtpass="password" then
response.redirect("welcome.aspx");
endif
endif

well....i forgot vb syntax, correct it according to your need. and sorry if i've done mistake in syntax

Now after the user is authenticated he/she'll be redirected to welcome page.

Now set up a session/cookie there in login page and use it to retrive the username in welcome.aspx.

a simple form would be

Welcome <text1.text>

Now whatever you enter in text1.text it'll appear after Welcome.

But for a a value in some other page you need state management. ASP.NET cant get values simply by using formname.controlname.value

eg. login.aspx.text1.text This is not supported, as ASP.NET is stateless
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES

Last edited by krishnandu.sarkar; 01-05-2010 at 12:56 PM.
krishnandu.sarkar is offline  
Old 02-05-2010, 08:57 PM   #6 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

thanks a lot. you just cleared lots of misconceptions regarding this stuff.

but still more to ask.
how to manage each user settings like their own personalized background their profile music, picture, and very thing else

does this require other technologies like Ajax and j script
deepakgates is offline  
Old 03-05-2010, 12:04 AM   #7 (permalink)
-The BlacKCoaT Operative-
 
Rollercoaster's Avatar
 
Join Date: Mar 2005
Location: Dehradun, India
Posts: 1,205
Default Re: User profiling in ASP.net .. if its called so!

i think it would be much better if you pick up a book as your questions are about very broad and fundamental things. I personally like Wrox and Apress. see this one

btw what you want is generically a 'portal' which is a site where users login and see pages that are modified to personalized for each user. (think of it is a template filled for each user and server to them)

You should also be aware that .net applications need a windows platform which is generally costlier then LAMP servers. There are also a bunch of generic Portal sites available for free. check them out.
__________________
--------------------------------------------
Holding my last breath, safe inside myself.....
--------------------------------------------
I dont use my computer. I misuse it- रोलरकोस्टर
Rollercoaster is offline  
Old 03-05-2010, 10:04 AM   #8 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

thanks roller coaster
i will look into it

---------- Post added at 04:34 AM ---------- Previous post was at 04:31 AM ----------

anyways are you telling me too ditch asp.net and learn an open source technology...
deepakgates is offline  
Old 03-05-2010, 10:41 AM   #9 (permalink)
keen to learn..
 
Join Date: Mar 2010
Location: Amritsar
Posts: 284
Default Re: User profiling in ASP.net .. if its called so!

hye buddy .

Make user controls to add a new user. and then to customize the look of the particular user u hv to use the profile concept. u can use themes also.
a2mn2002 is offline  
Old 03-05-2010, 12:59 PM   #10 (permalink)
-The BlacKCoaT Operative-
 
Rollercoaster's Avatar
 
Join Date: Mar 2005
Location: Dehradun, India
Posts: 1,205
Default Re: User profiling in ASP.net .. if its called so!

Quote:
Originally Posted by deepakgates View Post
anyways are you telling me too ditch asp.net and learn an open source technology...
It depends on what you are learning the technology for. If you just want to make your own site then most people chose open source as it is cheaper and usually a big helping community is there.

but if you are interested in the technology because you like something about it then dude no doubt there (i learned .net because I liked the technology and then I made a career out of it)

PS: remember .net is also some what open with the express editions. only that the hosting it requires is a bit more costly.
__________________
--------------------------------------------
Holding my last breath, safe inside myself.....
--------------------------------------------
I dont use my computer. I misuse it- रोलरकोस्टर
Rollercoaster is offline  
Old 03-05-2010, 02:36 PM   #11 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

Quote:
Originally Posted by a2mn2002 View Post
hye buddy .

Make user controls to add a new user. and then to customize the look of the particular user u hv to use the profile concept. u can use themes also.
I HAVE ALREADY USED THAT CONTROL AND THATS BULLSHIT.
i don't understand the working underneath it. so i prefer making my own stuff.

thanks anyway!!

---------- Post added at 09:06 AM ---------- Previous post was at 09:03 AM ----------

well thanks everybody!!
so result i will have to read more books..


i was thinking if i can get the source code for this.
it will help me understand better.
deepakgates is offline  
Old 03-05-2010, 10:58 PM   #12 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: User profiling in ASP.net .. if its called so!

Hey as u asked how to tackle with themes, images videos etc for per user. The answer is database

Well, let me say it briefly

Here is a database for you registered users

Registration ID, Name, Address, ProfileImage

Now u need to store the path of the image that the user uploads. Now when the same user login you'll get the path from RegistrationID / Name(whichever you create as primary key), and in that case you'll get the data of whole row including the path to image and then you can easily show the image.

For Videos, Albums and Themes query I would say consider this.

RegistationID, Name, AlbumID, VideoID, ThemeName

Now say you have two more tables.....Album and Video
AlbumID, ImageLink1, ImageLink2, ImageLink3.......so on...

VideoID, VideoLink1, VideoLink2, VideoLink3.......so on....

Now from your main table you'll get the AlbumID and VideoID for the user and then you can use sql to connect two tables using the AlbumID and VideoID.....so you'll get the videos and albums for that specific user.

Lemme say it with a eg.

RegistationID, Name, AlbumID, VideoID, ThemeName
01 xxx A1 V1 Country

AlbumID, ImageLink1, ImageLink2, ImageLink3
A1 a.jpg b.jpf c.jpg

VideoID, VideoLink1, VideoLink2, VideoLink3
V1 a.avi b.avi c.avi

Now when the user of RegistrationID 01 logins you'll get the whole row of data of where RegistrationID=01

Then connect the video table with VideoID and Album Table with AlbumID

the sql command will be like this

select video.albumlink1, video.albumlink2, video.albumlink3 where video.VideoID=Registration.VideoID

use the same for album table and you'll get the video and image links

And the theme you're easily getting from the registration table.

use this type of think
if Theme=="Country"
set country-theme

I hope you got it what i'm trying to say.
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is offline  
Old 04-05-2010, 09:59 AM   #13 (permalink)
Right Off the Assembly Line
 
deepakgates's Avatar
 
Join Date: May 2008
Location: Home
Posts: 36
Default Re: User profiling in ASP.net .. if its called so!

AWESOME friend!!
this forum runs because of people like you.
just thank you.
deepakgates is offline  
Old 04-05-2010, 11:50 PM   #14 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: User profiling in ASP.net .. if its called so!

You are welcome

Have fun while coding
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Video does not show in Windows XP limited user a/c lahratla Software Q&A 4 26-03-2010 04:38 PM
Play with Registry Editor kal_21 Tutorials 16 26-12-2007 09:02 PM
Basic User Interface vs. Microsoft® Windows® Aero™ User Interface in Windows Vista™ sabret00the Technology News 2 27-11-2006 03:29 PM
SIP (Session Initiation Protocol ) parthbarot Tutorials 4 10-03-2005 10:58 AM
Windows XP SP2 release date UPDATED 10th AUG 04 leech Software Q&A 68 17-08-2004 12:11 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:17 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2