Dear Denis,
Yes this functionality is already available. But I would like to build a dating site. And these profile fields are not compatible and sufficient for my wishes. I should reconstruct the user profile fields.Thatswhy I would like to test some modules. There are somehow interesting points. Let me clarify some points to prevent misunderstandings.
There is one point that I could not understand. I have created a test page with the name TestLogin.aspx and it works without any problem naturally. The code for the TestLogin.aspx page is given below.
aspx part:
<%@ Page Title="" Language="C#" MasterPageFile="/MonoX/MasterPages/Default.master" AutoEventWireup="true" CodeBehind="TestLogin.aspx.cs" Inherits="ProjectName.Web.TestLogin" Theme="Default"%>
<%@ MasterType TypeName="MonoSoftware.MonoX.BaseMasterPage" %>
<%@ Import Namespace="MonoSoftware.MonoX.Resources" %>
<%@ Register TagPrefix="MonoX" TagName="Login" Src="/MonoX/ModuleGallery/LoginModule.ascx" %>
<%@ Register Assembly="MonoX" Namespace="MonoSoftware.MonoX" TagPrefix="portal" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"cp"
runat
=
"server"
>
<
portal:PortalWebPartZone
>
<
ZoneTemplate
>
<
MonoX:Login
ID
=
"Login1"
runat
=
"server"
></
MonoX:Login
>
</
ZoneTemplate
>
</
portal:PortalWebPartZone
>
</
asp:Content
>
and the cs part:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
MonoSoftware.MonoX;
namespace
ProjectName.Web
{
public
partial
class
TestLogin : BasePage
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
Login1.ShowOpenIdLogin =
false
;
}
}
}
As a result I have no problem with the built in Login module.
But, in a exactly same manner I 've created the page TestProfile.aspx. Meanwhile the last code you've sent for me did not worked. And the code for the TestProfile.aspx is:
aspx part:
<%@ Page
Title=""
Language="C#"
MasterPageFile="/MonoX/MasterPages/Default.Master"
AutoEventWireup="true"
CodeBehind="TestProfile.aspx.cs"
Inherits="ProjectName.Web.TestProfile"
Theme="Default" %>
<%@ MasterType TypeName="MonoSoftware.MonoX.BaseMasterPage" %>
<%@ Import Namespace="MonoSoftware.MonoX.Resources" %>
<%@ Register TagPrefix="MonoX" TagName="EditProfile" Src="/MonoX/ModuleGallery/ProfileModule/UserProfileModule.ascx" %>
<%@ Register Assembly="MonoX" Namespace="MonoSoftware.MonoX" TagPrefix="portal" %>
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"cp"
runat
=
"server"
>
<
table
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"0"
class
=
"user-profile"
>
<
tr
>
<
td
class
=
"left-section"
>
<
portal:PortalWebPartZone
HeaderText='<%$ Code: PageResources.Zone_LeftPartZone %>' ID="leftPartZone" runat="server" Width="100%" ChromeTemplateFile="LeftColumn.htm">
<
ZoneTemplate
>
<
MonoX:EditProfile
id
=
"ctlProfile"
runat
=
"server"
IsPreviewMode
=
"true"
AutoDetectUser
=
"false"
HiddenFieldsString
=
"FirstName,LastName"
>
<
EditTemplate
>
</
EditTemplate
>
<
PreviewTemplate
>
</
PreviewTemplate
>
</
MonoX:EditProfile
>
</
ZoneTemplate
>
</
portal:PortalWebPartZone
>
</
td
>
<
td
class
=
"right-section"
>
</
td
>
</
tr
>
</
table
>
</
asp:Content
>
and the cs part:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
MonoSoftware.MonoX;
namespace
ProjectName.Web
{
public
partial
class
TestProfile : BasePage
{
protected
void
Page_Init(
object
sender, EventArgs e)
{
ctlProfile.UserId =
new
Guid(
"c2a9139e-e885-4d38-8c6d-b537bc150ad9"
);
}
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
}
}
I really could not understand why it doesn't work. Both of the two pages have the same structure and inheritance. I need help. Furthermore , I think this is the simplest part! I am very doubtful for the skinning. :)
Thank you very much for your patience again..