View Full Version : How do I set property values of Microsoft system.web.ui.webcontrols ?

09-01-2007, 02:10 AM
I'm trying to use java script to set property values of various Microsoft WebControls. I'm a new java script programmer and am just overwhelmed with material that i'm exposed myself the past few days, but can't seem to find, or understand how something so simple can be done.

here is a js function in my code.

txtRC is a Microsoft webcontrol.textbox
btnRCLookUp is a infragistics webdatainput.WebImageButton

on the buttons mouseOver event the following js function runs

function btnRCLookUp_MouseOver(oButton, oEvent){

document.Form1.txtRC.value = "45"; // This works fine.
document.Form1.txtRC.ToolTip = "Some Text"; // The tooltip doesn't display


I have half figured out my problem... .ToolTip is not part of an element, but .Value is.....so what is the syntax to set the tooltip property? I don't mind if someone just points me to where in the manual the answers are.

09-01-2007, 03:10 AM

09-04-2007, 08:22 AM
Thank you for the response... but it didn't work. My tool tip was not set using .title

I have a whole list of properties i want to set using java script, and was hoping that starting with the .tooltip would give me enough direction to find the correct syntax for things like setting the selected item in a drop down list.