MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

how to create App_Code folder in MonoX project ? (Closed) (Mono Support )

Viewed 63127 time(s), 16 post(s) 5/30/2012 5:02:16 PMby super
super

super

6/1/2012 4:00:49 PM
thanks that worked after removing allowAnonymous.

Now on everyone's profile page, why I am getting this (please see ATTACHED image)

Time zone UTC
Employer.CompanyID 1
JobSeeker.ResumeID 0
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

6/1/2012 4:03:22 PM
Also the ASP.NET project (job starter kit) that I am trying to add in monoX has this in the registeration form so that if anyone register, he or she can make himself or herself as "Jobseeker" or "Employer".

This is the code of the registration page (which is using 2 step wizard process):

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
public partial class register_aspx : Page
{
 
    protected void CreateUserWizard1_ContinueButtonClick(object sender, EventArgs e)
    {
        Response.Redirect("/default.aspx");
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
    protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (CreateUserWizard1.ActiveStep.ID == "WizardStep2")
        {
            TextBox t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox1"));
            ViewState["firstname"]=t.Text;
            t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox2"));
            ViewState["lastname"]=t.Text;
        }
 
        if (CreateUserWizard1.ActiveStep.ID == "WizardStep1")
        {
            MembershipUser objUser = Membership.GetUser();
            DropDownList ddl = ((DropDownList)CreateUserWizard1.ActiveStep.FindControl("DropDownList1"));
            if (ddl != null)
            {
                Roles.AddUserToRole(objUser.UserName, ddl.SelectedValue);
            }
            Profile.UserName = objUser.UserName;
            Profile.Email = objUser.Email;
            Profile.FirstName=ViewState["firstname"].ToString();
            Profile.LastName=ViewState["lastname"].ToString();
            Profile.JobSeeker.ResumeID = -1;
            Profile.Employer.CompanyID = -1;
        }
    }
 
    protected void CreateUserWizard1_ActiveStepChanged(object sender, EventArgs e)
    {
        if (CreateUserWizard1.ActiveStep.ID == "WizardStep1")
        {
            DropDownList ddl = ((DropDownList)CreateUserWizard1.ActiveStep.FindControl("DropDownList1"));
            if (ddl != null)
            {
                ListItem li1 = new ListItem("Job Seeker", ConfigurationManager.AppSettings["jobseekerrolename"]);
                ListItem li2 = new ListItem("Employer", ConfigurationManager.AppSettings["employerrolename"]);
                ddl.Items.Add(li1);
                ddl.Items.Add(li2);
            }
 
        }
    }
}
This content has not been rated yet. 
6018 Reputation 709 Total posts
super

super

6/1/2012 4:04:12 PM
Can you please help me in implementing this code in monoX registration process ? I have all the jab starter kit tables in the monoX database...everything is ready except this registration process thing.

Please help...
This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

6/2/2012 8:22:18 AM
Can you please confirm that the registration process works and that user type (seeker or employer) is saved correctly. Also please post the user profile web.config settings so we can check the structure and see if it is supported by MonoX.

Thanks
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

6/2/2012 8:23:46 AM
Also it will be a good thing that you open a new topic for every separate issue.

Thanks
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

6/2/2012 10:49:51 AM
Sure, I have posted this issue in a separate topic, please see: http://www.mono-software.com/Mono/Pages/Discussion/dtopic/lbDEHcsMxkOr_KBkANX07Q/Implementing-another-asp-net-project-in-MonoX-need-help/
This content has not been rated yet. 
6018 Reputation 709 Total posts
1 2