D
Daniel Groh
I have a user control with this code:
ASCX:
public string strTituloHTML
{
get{return objRmTituloPagina.GetString("CadastroUsuario.aspx");
}
---
I take this value in my ASPX
ASPX:
Cabecalho objTitulo = new Cabecalho(); <--user control instance
_titulo.InnerHtml = objTitulo.strTituloHTML;
THIS ABOVE WORK PERFECT!
BUT THIS BELLOW NOT, when i change in my user control for the correct form:
ASCX:
public string strTituloHTML
{
get{return objRmTituloPagina.GetString(System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"])); <--Here the warning
}
I have the follow warning: Object reference not set to an instance of an object
I have a response.write(objRmTituloPagina.GetString(System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"]))
in the Page_Load in my ASCX and no problem, this is happening just on my propety strTituloHTML.
Could someone help me ?
ASCX:
public string strTituloHTML
{
get{return objRmTituloPagina.GetString("CadastroUsuario.aspx");
}
---
I take this value in my ASPX
ASPX:
Cabecalho objTitulo = new Cabecalho(); <--user control instance
_titulo.InnerHtml = objTitulo.strTituloHTML;
THIS ABOVE WORK PERFECT!
BUT THIS BELLOW NOT, when i change in my user control for the correct form:
ASCX:
public string strTituloHTML
{
get{return objRmTituloPagina.GetString(System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"])); <--Here the warning
}
I have the follow warning: Object reference not set to an instance of an object
I have a response.write(objRmTituloPagina.GetString(System.IO.Path.GetFileName(Request.ServerVariables["SCRIPT_NAME"]))

Could someone help me ?