G
gogaz
Hello there,
I have a form with nine textboxes named as txt1, txt2, txt3.....txt9.
I would like to populate these boxes with values from database.
how can i do this in Page_load sub?
i mean in client side javascript, u can use eval function like :-
for(i=1;i<10;i++)
{
eval('document.forms[0].txt'+i+'.value=arrVals['+i+']');
//arrVals is an array with 9 different values
}
well i acheived wat i wanted eventually by writing/creating a client
side array in a while dr.read() loop in page_load sub. and then
executing above javascript.
but i would like to know if there is a similar approach on serverside
asp.net/vb.net? if no, then why??
thanx in advance!
I have a form with nine textboxes named as txt1, txt2, txt3.....txt9.
I would like to populate these boxes with values from database.
how can i do this in Page_load sub?
i mean in client side javascript, u can use eval function like :-
for(i=1;i<10;i++)
{
eval('document.forms[0].txt'+i+'.value=arrVals['+i+']');
//arrVals is an array with 9 different values
}
well i acheived wat i wanted eventually by writing/creating a client
side array in a while dr.read() loop in page_load sub. and then
executing above javascript.
but i would like to know if there is a similar approach on serverside
asp.net/vb.net? if no, then why??
thanx in advance!