| home / programming / asp-net-com / 1 | [previous] [next] |
|
|
Since this is a personal website, we do need an About Me page, don't we? Let's add one. Because we want this to be a simple page without any special functionality, we'll create it as an HTML page section.
Name |
Value |
| Section Name | About |
| Section Title | About Me |
| Section Menu Title | ABOUT ME |
| Section Description | Let me do my best to answer the "Who am I?" question. |
| Section Type | HTML Page Section |
2. Switch to the Appearance tab to set the Section Page Header, in HTML mode: Let me do my best to answer to the "Who am I?" question.
3. Click on Add Section and navigate to the About Me section in the main site. There-assuming you're still logged in as Admin-you'll see an Edit HTML link:

4. Click the Edit HTML link, and then check the View HTML Source checkbox to start editing in HTML mode:
<P ALIGN="CENTER">
<IMG SRC="cristian2.jpg"/>
</P>
<SPAN CLASS="About_Normal">
<B>I admit </B>this is a tough section to write. This is the part
of the
site where I should answer the <EM>"Who am I?"</EM>
question.
<BR><BR>
<B>Although </B>it is said that even the most complex questions
have simple
answers, I can't seem to find a simple answer to that particular question.
So, let me just tell you the usual stuff about where I live, what I like,
what I do for living and so on.
</SPAN>
Before being able to see the picture (cristian2.jpg), you need to add it to the database as a community image. Switch to the Community Administration Menu, go to the Edit Images page, and add there cristian2.jpg, which is available in the code download.
By default all requests for image files are handled by an image handler class named ImageHandler, which automatically searches for the image in the database (the ImageHandler class is registered in Web.Config). However, it is also possible to reference an image that resides in a physical folder on the disk, if that folder (or one of its parents) has an additional Web.Config file that unhooks the ImageHandler class (we'll see more about this in the following chapter). An example of such a folder is CommunityStarterKit/Communities/Common/Images.When loading the About Me page in Internet Explorer, you'll now see:
| home / programming / asp-net-com / 1 | [previous] [next] |
Created: March 27, 2003
Revised: July 29, 2004
URL: http://webreference.com/programming/asp-net-com/1