2
Reply

Cannot implicitly convert type

aravinth kandasamy

aravinth kandasamy

Apr 7 2015 9:11 AM
958
 This is my line.
TextBox txtSingleUnitPrice = ((TextBox)gvSender.Rows[e.RowIndex].FindControl("txtSingleUnitPrice"))?(TextBox)gvSender.Rows[e.RowIndex].FindControl("txtSingleUnitPrice"):0;


Error name is Cannot implicitly convert type 'System.Web.UI.WebControls.TextBox' to 'bool'..Please Help me.How to correct this error

Answers (2)