Click here to Skip to main content
15,899,314 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How do i create dynamic menus in Visual Web Developer Pin
Christian Graus17-Oct-07 1:33
protectorChristian Graus17-Oct-07 1:33 
GeneralRe: How do i create dynamic menus in Visual Web Developer Pin
mitchel31617-Oct-07 2:43
mitchel31617-Oct-07 2:43 
GeneralRe: How do i create dynamic menus in Visual Web Developer Pin
Christian Graus17-Oct-07 9:52
protectorChristian Graus17-Oct-07 9:52 
Questionrecord sound on client and transfer to server Pin
Roland Bär16-Oct-07 22:02
Roland Bär16-Oct-07 22:02 
AnswerRe: record sound on client and transfer to server Pin
Christian Graus17-Oct-07 1:38
protectorChristian Graus17-Oct-07 1:38 
QuestionBandwidth speed text component/script? Pin
PSU Steve16-Oct-07 5:24
professionalPSU Steve16-Oct-07 5:24 
AnswerRe: Bandwidth speed text component/script? Pin
Paul Conrad25-Nov-07 9:46
professionalPaul Conrad25-Nov-07 9:46 
QuestionAdding a JS function to a dynamically created table cell in C# [modified] Pin
But_Im_a_Lady16-Oct-07 4:33
But_Im_a_Lady16-Oct-07 4:33 
Hi,

I am adding a table dynamically using c# as below:-

productCell = new TableCell();
KSSCheckBox checkBox = new KSSCheckBox();
checkBox.ID = string.Format("CheckBox|{0}|{1}", x, product.OwnProductUID);
checkBox.Description = "Update";
checkBox.Checked = false;
checkBox.Attributes.Add("onClick", "HighLightCell();");
productCell.Controls.Add(checkBox);
productRow.Cells.Add(productCell);


When the user clicks the CheckBox I have to call a JS function which will highlight the table cell, and then do the reverse if the user unclicks the box again.

Trouble is I'm new to Javascript & dont really know where to start, have read plenty of examples on the Web but all of these are adding the code in the front end pages - I want to add this in code behind window.

I am including a .js in the page.aspx, which contains:-

function HighlightCell(cell)
{
Cell.style.backgroundColor = "#E0E0E0";
}

But this never gets fired when I click the check box?

Any help will be appreciated.



Thx
Janet


-- modified at 10:55 Tuesday 16th October, 2007

Lady Programmers are a rare breed!

AnswerRe: Adding a JS function to a dynamically created table cell in C# Pin
pmarfleet16-Oct-07 11:58
pmarfleet16-Oct-07 11:58 
QuestionFrom UTF-8" to "ISO-8859-1 Pin
hifiger200416-Oct-07 1:29
hifiger200416-Oct-07 1:29 
AnswerRe: From UTF-8" to "ISO-8859-1 [modified] Pin
kubben16-Oct-07 3:42
kubben16-Oct-07 3:42 
GeneralRe: From UTF-8" to "ISO-8859-1 Pin
hifiger200416-Oct-07 5:20
hifiger200416-Oct-07 5:20 
GeneralRe: From UTF-8" to "ISO-8859-1 Pin
kubben16-Oct-07 5:38
kubben16-Oct-07 5:38 
AnswerRe: From UTF-8" to "ISO-8859-1 Pin
hifiger200416-Oct-07 5:50
hifiger200416-Oct-07 5:50 
GeneralRe: From UTF-8" to "ISO-8859-1 Pin
kubben16-Oct-07 5:53
kubben16-Oct-07 5:53 
QuestionSession variable expires Pin
hifiger200415-Oct-07 23:24
hifiger200415-Oct-07 23:24 
AnswerRe: Session variable expires Pin
Elizma16-Oct-07 2:08
Elizma16-Oct-07 2:08 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:06
hifiger200416-Oct-07 5:06 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:23
hifiger200416-Oct-07 5:23 
AnswerRe: Session variable expires Pin
kubben16-Oct-07 2:37
kubben16-Oct-07 2:37 
GeneralRe: Session variable expires Pin
hifiger200416-Oct-07 5:06
hifiger200416-Oct-07 5:06 
GeneralRe: Session variable expires Pin
kubben16-Oct-07 5:35
kubben16-Oct-07 5:35 
GeneralRe: Session variable expires Pin
hifiger200417-Oct-07 1:16
hifiger200417-Oct-07 1:16 
GeneralRe: Session variable expires Pin
kubben17-Oct-07 1:33
kubben17-Oct-07 1:33 
GeneralRe: Session variable expires Pin
hifiger200417-Oct-07 2:30
hifiger200417-Oct-07 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.