Hi,
I had recently coded using repeaters in the 2.0 framework.. My repeater had round 10 labels plus 2 buttons in them,
In one my labels i had used the following code:
<asp:label id="lblTraining " text='GetFuncti on((object)Data binder.Eval(Con tainer.DataItem ,"training") )' />
while in the code behind the code was:
String GetFunction( object training)
{
int _training=Conve rt.toInt32(trai ning);
switch(_trainin g)
{
case 1:return "Training Attended" ;
case 0:return"Traini ng NotTraining";
}
}
hi what this code did was that it looked up a column(training ) value in my database and returned the particular string in the
text field of my label..
this was working absolutely fine..
However i needed to change the framework to 1.1..
However it is throwing up an error in my .aspx that GetFunction does not exist in the current context..
Please could anyone tell me how i could resolve this.. Also what all things should be added or subtracted from my 2.0 code,
to make it work in the 1.1 framework
Thanks A Lot,
Nitin
I had recently coded using repeaters in the 2.0 framework.. My repeater had round 10 labels plus 2 buttons in them,
In one my labels i had used the following code:
<asp:label id="lblTraining " text='GetFuncti on((object)Data binder.Eval(Con tainer.DataItem ,"training") )' />
while in the code behind the code was:
String GetFunction( object training)
{
int _training=Conve rt.toInt32(trai ning);
switch(_trainin g)
{
case 1:return "Training Attended" ;
case 0:return"Traini ng NotTraining";
}
}
hi what this code did was that it looked up a column(training ) value in my database and returned the particular string in the
text field of my label..
this was working absolutely fine..
However i needed to change the framework to 1.1..
However it is throwing up an error in my .aspx that GetFunction does not exist in the current context..
Please could anyone tell me how i could resolve this.. Also what all things should be added or subtracted from my 2.0 code,
to make it work in the 1.1 framework
Thanks A Lot,
Nitin