[Mono-list] System.Web.Profile.DefaultProfile

Breno brenopiva at yahoo.com.br
Mon Jul 10 09:54:20 EDT 2006


Hi Juan,
   
  "Profile" is a property of type "ProfileCommon" and both should be automaticaly generated by the ASP.NET compiler. "ProfileCommon" is generated using "web.config" where properties like "parametros.codigo", in the code, are defined. As this is a ASP.NET 2.0 feature I guess this is not yet implemented, can anyone give me a comfirmation?
   
  thanks,
   
  Breno

Juan Cristóbal Olivares <juancri at gmail.com> escreveu:
  Breno:

"Profile" doesn't seem to be a member of your class. Profile is not either a member of System.Web.UI.Page... is it a reference to a class or a member?

regards
Juan C. Olivares

  On 7/6/06, Breno <brenopiva at yahoo.com.br> wrote:      Hi,
   
  I'm trying to port an ASP.NET 2.0 site to mono and I get a compílation error when trying to run the following code, does anyone knows whats going on? I also tryied with a simpler example and got the same error. 
   
  Thanks in advance,
   
  Breno
   
  ***************************************************************************************************
  using System;
  using System.Data;
  using System.Configuration;
  using System.Collections;
  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 _Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
  {
  }
  protected void Button1_Click(object sender, EventArgs e) 
  {
  
      Profile.parametros.codigo = TextBox1.Text;
  Profile.parametros.url = "Default.aspx";
  log4net.LogManager.GetLogger(this.GetType()).Fatal("Teste 21er23tr4 " + Profile.parametros.codigo + " url: " + Profile.parametros.url);
  HiddenCodigoPessoa.Value = TextBox1.Text;
  Server.Transfer("EdicaoPessoa.aspx?conf=ConfEdicaoPessoa_Alterar");
  }
  protected void Button3_Click(object sender, EventArgs e)
  { 
    HiddenCodigoPessoa.Value = TextBox1.Text;
  }
  }
   
  ****************************************************************************************************
   
  The error message is:
   
  Error message: C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(21,9) : error CS0103: The name `Profile' does not exist in the context of `_Default' C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(22,9) : error CS0103: The name `Profile' does not exist in the context of `_Default' C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(24,81) : error CS0103: The name `Profile' does not exist in the context of `_Default' 

    
  
---------------------------------
  Você quer respostas para suas perguntas? Ou você sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas!   


_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com 
http://lists.ximian.com/mailman/listinfo/mono-list






-- 
Juan Cristóbal Olivares


 		
---------------------------------
 Yahoo! Copa 2006 - cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060710/7d4f93c4/attachment-0001.html 


More information about the Mono-list mailing list