dynamically calc edit field in datagrid

  • Thread starter Thread starter hansiman
  • Start date Start date
H

hansiman

In edit mode in a datagrid I have three textboxes. The third textbox
is the product of the first and second textbox. onkeyup event on first
and second textbox pass values of first and second textbox to
javascript.

How do I pass the third textbox as an object so I can multiply first
and second textbox and set textbox3.value = product?

Morten
 
Dim TextBoxAquisPriceDKK As TextBox
TextBoxAquisPriceDKK =
CType(e.Item.Cells(1).FindControl("txtAquisPriceDKK"), TextBox)

CType(e.Item.Cells(1).FindControl("txtAquisPriceCur"),
TextBox).Attributes("onkeyup") = _
"calcPriceDkk(this.value, '" &
CType(e.Item.Cells(1).FindControl("txtExchangeRate"), TextBox).Text &
"', " & TextBoxAquisPriceDKK.ClientID & ");"
 
Back
Top