Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

function not found ?? Compilation Error

Status
Not open for further replies.

need2progm

Programmer
Dec 13, 2002
92
US
I have a check box ....
<asp:checkbox id=&quot;chkAll&quot; OnCheckedChanged=ValueChanged(this.Checked) </asp:checkbox>

in script tags a I have..
<script language=&quot;javascript&quot;>

function ValueChanged(value)
{
//check all was selected so check all the parents
// selecting the parents will recursivly check/uncheck its children

var grid = igtbl_getGridById(tableName); //get grid
var gridRows = grid.Rows; // returns all the rows in band 0
var checkAllValue = document.getElementByID
('chkAll').Checked;

if(gridRows == null)
{} // No rows so Do NOTHING
else
{
for(i=0;i<gridRows.length;i++)
{
var Row = gridRows.getRow(i);
Row.getCell(0).setValue(value); //set value to chkAll value
}
}
return;
}

I am getting an error 'ValueChanged' is not a member of 'ASP.CreateGrid_ascx'

Does anyone have any suggeations on what I should look at?

Thanks in advance for taking time to help me out!
 
I see one problem so far, getElementByID should be getElementById

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
The more I read your question, the more I think this should be posted in the ASP.NET forum. The only other thing I can thing of is maybe if you changed OnCheckedChanged to OnClick, but I could be way off since I haven't really gotten into ASP.NET yet.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top