Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Lisa Calla #1
output text in control location; calling control javascript from page javascript
Hi;
If you don't know, I'm just learning javascript and aspnet, but I have a
pretty good grounding in windows programming.
I'm trying to build a better edit control. The light grey text when a
textbox is disabled is difficult for some of my users to read. My first
attempt was based on a textbox and a label. When enabled, the textbox
should be visible, and when disabled, the label should be visible and the
textbox not. Easily done in code-behind, but more difficult client side.
I think a better approach would be when disabled, the textbox is hidden, and
the text property is simply written out to the page in the location of the
control. When enabled, the textbox is shown. I can hide and show my
textbox, but I'm stumped on the client side writing of the text at the
control location. Any tips?
2nd part: Since I have a collection of these controls, I can call a
function with ctl1.disable, ctl2.disable, etc (where disable is the
control's client side function) from client side code in the hosting page,
but my disable function is never called. How do you invoke the control's
javascript function from javascript in the hosting page?
Thanks
Lisa Calla Guest
-
output javascript to appear at end of page?
hi, i want to write some javascript at the *end* of my rendered html page via my webform. currently i am using response.write and it always... -
How can a control inject a style (or javascript reference) in the page HEADer?
That is the question indeed!. It is not the first time I make some sort of web control that depends on some CSS styles. Usually one would go around... -
calling Javascript: location.replace('url') inside Flash not working..
Hello, I'm trying to call a Javascript statement via Flash but it will not work the way it normally does when I call it in plain HTML. I'm... -
Add formatted text to JavaScript function call during ItemDataBound of a Repeater Control.
Hello, I am taking values from a datatable and formatting them for use in a JavaScript Function Call. The end result is a mouse over tool tip. ... -
Passign Javascript From User Control to Parent(host) Page
Good Afternoon I am hoping for some help for a problem i am struggling with. I am using a Parent Page to Dynamically load my user Controls based...



Reply With Quote

