Im making a photo gallery application where users can only see their own
photos.
My photos table looks like this
Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership provider
Can someone points me to the right direction
Thanks
Tem 6 1191
You'll need to create your own custom provider if you wish to manage, not
only the users & roles but also the photo data. http://www.devx.com/asp/Article/29256
"Tem" <te*****@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Im making a photo gallery application where users can only see their own
photos.
My photos table looks like this
Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership provider
Can someone points me to the right direction
Thanks
Tem
On 27 Dec, 20:39, "Tem" <tem1...@yahoo.comwrote:
Im making a photo gallery application where users can only see their own
photos.
My photos table looks like this
Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership provider
Can someone points me to the right direction
Thanks
Tem
I'm not sure what you mean by "integrate" but the requirement you
describe could be met by filtering the data table on Membership
username (if that differs from PhotoUser then add an extra column)
which is easily read with the Membership.getuser() function.
Thanks
If I understand this correctly PhotoUser would store the username of the
user the photo belongs to. Wouldn't this be slow performance wise?
(searching a string)
would it be faster to use UserID uniqueidentifier instead?
"Phil H" <go****@philphall.me.ukwrote in message
news:aa**********************************@e6g2000p rf.googlegroups.com...
On 27 Dec, 20:39, "Tem" <tem1...@yahoo.comwrote:
>Im making a photo gallery application where users can only see their own photos. My photos table looks like this Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership provider Can someone points me to the right direction
Thanks
Tem
I'm not sure what you mean by "integrate" but the requirement you
describe could be met by filtering the data table on Membership
username (if that differs from PhotoUser then add an extra column)
which is easily read with the Membership.getuser() function.
Not if you indexed the PhotoUser column.
--
Mohamad Elarabi
MCP, MCTS, MCPD.
"Tem" wrote:
Thanks
If I understand this correctly PhotoUser would store the username of the
user the photo belongs to. Wouldn't this be slow performance wise?
(searching a string)
would it be faster to use UserID uniqueidentifier instead?
"Phil H" <go****@philphall.me.ukwrote in message
news:aa**********************************@e6g2000p rf.googlegroups.com...
On 27 Dec, 20:39, "Tem" <tem1...@yahoo.comwrote:
Im making a photo gallery application where users can only see their own
photos.
My photos table looks like this
Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership
provider
Can someone points me to the right direction
Thanks
Tem
I'm not sure what you mean by "integrate" but the requirement you
describe could be met by filtering the data table on Membership
username (if that differs from PhotoUser then add an extra column)
which is easily read with the Membership.getuser() function.
how would I do that?
"Mohamad Elarabi [MCPD]" <Mo****************@discussions.microsoft.com>
wrote in message news:58**********************************@microsof t.com...
Not if you indexed the PhotoUser column.
--
Mohamad Elarabi
MCP, MCTS, MCPD.
"Tem" wrote:
>Thanks
If I understand this correctly PhotoUser would store the username of the user the photo belongs to. Wouldn't this be slow performance wise? (searching a string) would it be faster to use UserID uniqueidentifier instead?
"Phil H" <go****@philphall.me.ukwrote in message news:aa**********************************@e6g2000 prf.googlegroups.com...
On 27 Dec, 20:39, "Tem" <tem1...@yahoo.comwrote: Im making a photo gallery application where users can only see their own photos. My photos table looks like this Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership provider Can someone points me to the right direction
Thanks
Tem
I'm not sure what you mean by "integrate" but the requirement you
describe could be met by filtering the data table on Membership
username (if that differs from PhotoUser then add an extra column)
which is easily read with the Membership.getuser() function.
To index the PhotoUser column run the following SQL command
CREATE INDEX PhotoUserIndex ON Photos (PhotoUser)
The syntax is
Create Index [IndexName] On [TableName] ([ColumnName])
Imho there isn't much wrong with your current approach, and as far as
efficiency this is just fine. There may be benifits to taking advantage of
..Net membership but if you can't implement it you're just wasting your time.
Put it down on your "to learn" list but my advice is to move on with this
project and start a little test project where you can play around with
membership, roles, authorization, personalization, themes, webparts, etc.
These are all very cool and good to know features of the .Net 2.0 framework.
Good luck.
--
Mohamad Elarabi
MCP, MCTS, MCPD.
"Tem" wrote:
how would I do that?
"Mohamad Elarabi [MCPD]" <Mo****************@discussions.microsoft.com>
wrote in message news:58**********************************@microsof t.com...
Not if you indexed the PhotoUser column.
--
Mohamad Elarabi
MCP, MCTS, MCPD.
"Tem" wrote:
Thanks
If I understand this correctly PhotoUser would store the username of the
user the photo belongs to. Wouldn't this be slow performance wise?
(searching a string)
would it be faster to use UserID uniqueidentifier instead?
"Phil H" <go****@philphall.me.ukwrote in message
news:aa**********************************@e6g2000p rf.googlegroups.com...
On 27 Dec, 20:39, "Tem" <tem1...@yahoo.comwrote:
Im making a photo gallery application where users can only see their
own
photos.
My photos table looks like this
Id, PhotoName, PhotoURL, PhotoUser
I need to know how I can integrate this with ASP.NET's membership
provider
Can someone points me to the right direction
Thanks
Tem
I'm not sure what you mean by "integrate" but the requirement you
describe could be met by filtering the data table on Membership
username (if that differs from PhotoUser then add an extra column)
which is easily read with the Membership.getuser() function.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Paul Keegstra |
last post by:
Hi,
I am currently working on an asp.net 2.0 web site that is a replacement of a
classic asp web site. The current web site uses a Commerce Server 2002
database for storing user information. ...
|
by: Pony Tsui |
last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this
application use the MemberInfo table in club.mdf to store the
membership'data, but i can not find out where to define or...
|
by: Balaji |
last post by:
Hi All,
Can I use more than one membership provider for a given website? I
understand only one of them could be default one. If yes, then how to
programmatically access the other membership...
|
by: ryan.mclean |
last post by:
Hello everyone,
I am wondering, can the membership provider be changed at runtime?
Perhaps the connectionStringName?
I would like to use a different database based on the server the site
is...
|
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= |
last post by:
I have been having some trouble with implementing a custom Membership
Provider. We have a custom data store and business logic that pulls user
information. I need some level of functionality...
|
by: =?Utf-8?B?U2FsYW1FbGlhcw==?= |
last post by:
Hi, I am trying to play with the Survey manager application provided
gracefully by Microsoft at
"http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many
thanks), compiled the win...
|
by: Glenn |
last post by:
My current classic-ASP site has users, projects, roles and the 2.0
membership looks like a perfect fit, but I'm having trouble finding
examples of how to have users that belong to different...
|
by: =?Utf-8?B?ZVByaW50?= |
last post by:
Asp.Net v2.0
I have created a web application and I am using it from a single website and
database. The web application has different ‘portals’ – each independent and
I am using the...
|
by: =?Utf-8?B?ZVByaW50?= |
last post by:
Asp.Net v2.0
I have created a web application and I am using it from a single website and
database. The web application has different ‘portals’ – each independent and
I am using the...
|
by: Nick |
last post by:
Hi there,
Membership.GetNumberOfUsersOnline() works great the first time, then
jumps up to the number of users registered in the system.
I have tried enumerating through each user individually...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |