F
Fabrizio
This is the scene:
i have a user control IN a user control with a label inside named lblStato that must blink; i cannot use <BLINK> tag; having this in a webform a use this code
Page.RegisterStartupScript("BlinkStatus", "<script>" _
& "setTimeout(BlinkStatusText,500);" _
& "function BlinkStatusText() { " _
& "if (document.getElementById('lblStato').style.visibility=='visible') {" _
& "document.getElementById(lblStato').style.visibility='hidden'} else {" _
& "document.getElementById('lblStato').style.visibility='visible'}" _
& "setTimeout(BlinkStatusText,1000)}" _
& "</script>")
and works fine, unluckily having a label in user control it doesn't work.
I checked the html resulting and saw that, having the first user control named oMapDet and the nested one oMapDetGeneral the label is named oMapDet_oMapDetGeneral_lblStato; i tried using this name but still doesn't work.
Two question:
1) How to make this work again
2) if my user control is in two webforms it can be called oMapDet, oMapDet2, oTest etc... How can i know in the user control source code what is my name in a particular context ?
thanks,
Fabrizio
i have a user control IN a user control with a label inside named lblStato that must blink; i cannot use <BLINK> tag; having this in a webform a use this code
Page.RegisterStartupScript("BlinkStatus", "<script>" _
& "setTimeout(BlinkStatusText,500);" _
& "function BlinkStatusText() { " _
& "if (document.getElementById('lblStato').style.visibility=='visible') {" _
& "document.getElementById(lblStato').style.visibility='hidden'} else {" _
& "document.getElementById('lblStato').style.visibility='visible'}" _
& "setTimeout(BlinkStatusText,1000)}" _
& "</script>")
and works fine, unluckily having a label in user control it doesn't work.
I checked the html resulting and saw that, having the first user control named oMapDet and the nested one oMapDetGeneral the label is named oMapDet_oMapDetGeneral_lblStato; i tried using this name but still doesn't work.
Two question:
1) How to make this work again
2) if my user control is in two webforms it can be called oMapDet, oMapDet2, oTest etc... How can i know in the user control source code what is my name in a particular context ?
thanks,
Fabrizio