473,725 Members | 2,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Profile and Data. Please, Need Urgent Help/Advice. Thank You Very Much.

Hello,

I am working on an Asp.Net 2.0 / SQL 2005 web site.
I am using profile to save the users info on the database.

For example, I have the following structure:
Public Structure Name
Public First As String
Public Last As String
End Structure

Then in my Web.config file I have:
<properties>
<add name="Name" type="MyWebSite .Name" />
...

This is working fine for saving personal information for each user where
a user has only one Name.

However each user can also publish documents. Various documents.
Public Structure Document
Public Title As String
Public FileUrl As String
Public Date As DateTime
End Structure

I see 2 options:
1. Traditional
Create the documents database with a foreign key to users table.
Should I connect my foreign key to [UserId] in aspnet_Membersh ip
table?

2. Using Profile
Can I use profile to save and retrieve the documents published by
each user?

Basically, what I need is to:
1. Insert, Edit and Retrieve documents records on my database.
2. Each document as a author.
I might need to retrieve the documents from only one author, from
all authors or any other criteria using an SQL Query or Procedure.

Anyway, I am completly confused about profile in Asp.Net 2.0.
I know I can use it to save user information.
But can I use it to save, for example, multiple records regarding one
subject like published documents.

I have been trying to figure this but I really need some help.

Could someone please help me out?
Any advice, simple code example or link would be great.

Thank You Very Much,
Miguel

Jan 28 '06 #1
0 1348

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2261
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see following 2 examples): ---- EXAMPLE 1 -------- OK --> Dim p As New ProfileCommon OK --> p = Profile.GetProfile(Me.ddlRacer.SelectedItem.Text) FAILS --> Me.lblDebug.Text = p.FirstName.ToString
0
1348
by: Miguel Dias Moura | last post by:
Hello, I am saving a complex type in Asp.Net 2.0 profile. I am using an SQL 2005 database as a profile provider. I have been consulting MSDN as help to create my class. (Please, see my code at the end of this post) OBJECTIVE: - Save the documents published by each user in profile.
6
8117
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a picture of themselves to their profile... I admit that I'm a newbie... but this is how I understand this:
1
1602
by: Max2006 | last post by:
Hi, Do I need to be worry about WS-Profiling or it already had been taken care in ASP.NET asmx web services platform? Thank you, Max
0
864
by: yui | last post by:
Hi I am very need an advice for this. I am new to ASP.NET C# / VS2003 here is my sql command SELECT tblStudentCourse.CourseID, tblStudents.StudentID, tblStudents.FirstName, tblStudents.SurName, tblUsers.UserID, tblUsers.Username FROM (tblStudents INNER JOIN (tblCourses INNER JOIN tblStudentCourse ON tblCourses.CourseID = tblStudentCourse.CourseID) ON tblStudents.StudentID = tblStudentCourse.StudentID) INNER JOIN tblUsers ON...
9
3106
by: Eric Falsken | last post by:
I've added a number of additional properties to my profile. Sometimes, the values are populated when the user is retrieved from the database, but sometimes the values are empty/default. How can I make sure that the values are always populated correctly? Further example, my website is working reliably enough, but I'm trying to access the user profiles from an offline application, and very few of the custom properties are being returned to...
5
1765
by: PhilTheGap | last post by:
Hi there, I'm looking for a way to get and update the "Profile" of a user. As I'm not logged as this user, I cannot use the System.Web.Profile class, and after having a look at MSDN, I don't see any classes among this namespace (ProfileManager, ProfileInfo...) which could help me. Best regards
3
3439
by: Oriane | last post by:
Hi there, I would like to open my Asp.Net project as a "Web Application" rather than as a "Web Site" in Visual Studio. But the thing is that I use the System.Web.Profile and the auto-generated class "ProfileCommon myApp.Profile", which provides me with type profile properties. And the fact is that this generated class is not generated with Web app... For ex, in the web site project, if "X" is a profile Property, I can write:
5
2856
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a app that uses several membership/role providers. I can list these Providers with the code: Dim rootWebConfig1 As Configuration rootWebConfig1 = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath) Dim section As New MembershipSection section = rootWebConfig1.GetSection("system.web/membership")
0
8889
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.