R
rodchar
hey all,
please reference: http://pastebin.com/mef78b3d
As shown in the reference I am dynamically building my controls in my class.
I'd like to be able to attach javascript calls as attributes to each of my
controls if applies.
for example,
String varString = "alert('i'm a textbox')";
txt.attributes.add("onmouseover", varString);
now i know i can code this in each case statement but i was wondering if
there was a way to code this once and after the switch statement and do it on
whatever control is built?
thanks,
rodchar
please reference: http://pastebin.com/mef78b3d
As shown in the reference I am dynamically building my controls in my class.
I'd like to be able to attach javascript calls as attributes to each of my
controls if applies.
for example,
String varString = "alert('i'm a textbox')";
txt.attributes.add("onmouseover", varString);
now i know i can code this in each case statement but i was wondering if
there was a way to code this once and after the switch statement and do it on
whatever control is built?
thanks,
rodchar