Posted on: 5/18/2011 10:36:17 AM | Views : 250

Hi all
pageIndexNumber is a HiddenField in my form and I am trying to convert its value to int:
<asp:TemplateField HeaderText="No." ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <%#String.Format("{0}", (((GridViewRow)Container).RowIndex + 1) + ((Int)pageIndexNumber.Value * 10) )%> </ItemTemplate> <ItemStyle Width="2%" /> </asp:TemplateField>  Compile error: cannot convert type String to Int
Any ideas?
Thanks
...

Go to the complete details ...