J
Jeff
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:
I create a new section in web.config contain this info
<profile defaultProvider="AspNetSqlProfileProvider">
<properties>
<add name="Name" />
<add name="Picture" type="System.Web.UI.WebControls.Image" />
</properties>
</profile>
Then in the code I can write something like this:
Profile.Picture = <a picture>;
And then during execution of this code the picture is automatically saved in
the express database visual web developer 2005 express edition created in
this project folder. (the .NET framework creates the new column in the user
profile and do all functionality for saving & loading the image from the db)
Is it how it works???
Hmm it can't be correct, because even now I can create new users to my
website, name & password being used by the login control in my website...
but all the data my web.config file has is this:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<roleManager enabled="true"/>
<authentication mode="Forms"/>
<compilation debug="true"/></system.web>
</configuration>
There are no settings here that hold the username and password..... so
clearly what I suggest above must be wrong!
Please guide me on the right track here, give me some clue I could look
after... a link explaining this would be great (I've been google already,
but I think I'm searching with the wrong keywords)
Please, I'm stucked in this, so some suggestions would be greatly
appreaciated!
Jeff
(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:
I create a new section in web.config contain this info
<profile defaultProvider="AspNetSqlProfileProvider">
<properties>
<add name="Name" />
<add name="Picture" type="System.Web.UI.WebControls.Image" />
</properties>
</profile>
Then in the code I can write something like this:
Profile.Picture = <a picture>;
And then during execution of this code the picture is automatically saved in
the express database visual web developer 2005 express edition created in
this project folder. (the .NET framework creates the new column in the user
profile and do all functionality for saving & loading the image from the db)
Is it how it works???
Hmm it can't be correct, because even now I can create new users to my
website, name & password being used by the login control in my website...
but all the data my web.config file has is this:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<roleManager enabled="true"/>
<authentication mode="Forms"/>
<compilation debug="true"/></system.web>
</configuration>
There are no settings here that hold the username and password..... so
clearly what I suggest above must be wrong!
Please guide me on the right track here, give me some clue I could look
after... a link explaining this would be great (I've been google already,
but I think I'm searching with the wrong keywords)
Please, I'm stucked in this, so some suggestions would be greatly
appreaciated!
Jeff