Ctype Namespace

  • Thread starter Thread starter Vinod Jajoo
  • Start date Start date
V

Vinod Jajoo

When using
CType(e.Item.FindControl("imgProduct"),
System.Web.UI.WebControls.Image).ImageUrl



I am getting following error :

c:\inetpub\wwwroot\BoTree\products.aspx.cs(132): The name 'CType' does not
exist in the class or namespace 'BoTree.products'

Thanks



Vinod Jajoo
 
Vinod Jajoo said:
When using
CType(e.Item.FindControl("imgProduct"),
System.Web.UI.WebControls.Image).ImageUrl

I am getting following error :

c:\inetpub\wwwroot\BoTree\products.aspx.cs(132): The name 'CType' does not
exist in the class or namespace 'BoTree.products'

The ".cs" suggests that this is meant to be C# - CType is a VB.NET-ism.
 
Back
Top