Visual Basic .NET » Windows Forms
Retrive texbox's value which is inside the datagrid iusing Javascript -- crazy --

hai all,
my doubt is something abt Javascript .

in my webform i ve a datagrid with in that datagrid i ve two textbox in the 1st and 3rd column.

how i retrive its value in a javascript .

i know to take value of a cell in the datagrid using javascript.
document.getElementById("dgQtion").rows(1).cells(5).innerText how i take the value of a textbox in first row cells(1)?

*OR *

i am using vb.net.i want to pass its value(textbox inside datagrid) to a javascript function.
i know to pass the value of a cell in the datagrid to javascript.

in itemdatabound event i can take the value of a textbox which is inthe datagrid.
CType(e.Item.FindControl("TxtRate"), TextBox).Attributes.Add("onKeyUp",
"javascript: return calculate(this.value," & e.Item.Cells(0).Text & ");")

instead of e.Item.Cells(0).Text i want to pass the value of a textbox, which is inside the datagrid , to javascript function calculate.

any solution is appreciatable.

tahnks in advance

--
"People who never make mistakes, never do anything."

Crazy

[Submit Comment]Home