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

Viewed 92246 time(s), 16 post(s), 5/30/2012 5:02:16 PM - by super
6/1/2012 4:00:49 PM
6018 Reputation 709 Total posts

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

11
6/1/2012 4:03:22 PM
6018 Reputation 709 Total posts

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);
            }
 
        }
    }
}

12
6/1/2012 4:04:12 PM
6018 Reputation 709 Total posts

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...

13
6/2/2012 8:22:18 AM
15993 Reputation 2214 Total posts

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

14
6/2/2012 8:23:46 AM
15993 Reputation 2214 Total posts

Also it will be a good thing that you open a new topic for every separate issue.

Thanks

15
6/2/2012 10:49:51 AM
6018 Reputation 709 Total posts

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/

16
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.