dynamically calc edit field in datagrid

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
 
H

hansiman

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 & ");"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top