hy = new System.Web.UI.W ebControls.Hype rLink();
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.ToStrin g(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.ToStrin g(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
Comment