-2

Hi TabIndex accepts only int type, using like this throws exception TabIndex='<%#Bind("Id")) Have to convert to int and store the binded value.. How can i do this in aspx source page not in code behind? Thanks..

Developer
  • 231
  • 4
  • 19

2 Answers2

0

use like this if it is inside gridview if the Id property is not int.

TabIndex='<%# Int32.Parse(Eval("Id").ToString())>' 
शेखर
  • 17,412
  • 13
  • 61
  • 117
0

Use

TabIndex='<%#Bind(int.parse("Id")))>' 
Monika
  • 2,172
  • 15
  • 24