V
valmir cinquini
hy = new System.Web.UI.WebControls.HyperLink();
Why this doesn't work?
if(something == true)
hy.NavigateUrl = "email.aspx?id=" + (string) p+1; ****
but this works correctly?
if(something == true)
hy.NavigateUrl = "email.aspx?id=" + Convert.ToString(p+1);
**** this way I got the following error:
Cannot convert type 'int' to 'string'
Why? (string) shouldn't cast p+1 result to a string?
TIA
Why this doesn't work?
if(something == true)
hy.NavigateUrl = "email.aspx?id=" + (string) p+1; ****
but this works correctly?
if(something == true)
hy.NavigateUrl = "email.aspx?id=" + Convert.ToString(p+1);
**** this way I got the following error:
Cannot convert type 'int' to 'string'
Why? (string) shouldn't cast p+1 result to a string?
TIA