473,809 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dynamically calc edit field in datagrid

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
Nov 19 '05 #1
1 1064
Dim TextBoxAquisPri ceDKK As TextBox
TextBoxAquisPri ceDKK =
CType(e.Item.Ce lls(1).FindCont rol("txtAquisPr iceDKK"), TextBox)

CType(e.Item.Ce lls(1).FindCont rol("txtAquisPr iceCur"),
TextBox).Attrib utes("onkeyup") = _
"calcPriceDkk(t his.value, '" &
CType(e.Item.Ce lls(1).FindCont rol("txtExchang eRate"), TextBox).Text &
"', " & TextBoxAquisPri ceDKK.ClientID & ");"

On Mon, 13 Dec 2004 13:16:27 +0100, hansiman <ha***@hotmail. com>
wrote:
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


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8997
by: Terry | last post by:
I have a number of input boxes used to display totals based on selected items for each row in a table. There are more than a few rows that are identical, except for the form field name. I have added a sample of that below (there would be many more rows). I'm wondering if there is a way to dynamically generate the variable names (ie: T1val, T2val, etc.) in my function 'calc', based on the argument 'regnum' that I pass it. The problem...
0
1121
by: Mike | last post by:
Hi, I am having problems with my program, the problem is it will not put the datagrid into edit mode. The .aspx page has the following code in it : - <asp:datagrid id="DataGrid2" runat="server" OnEditCommand="DEDR_Edit2"></asp:datagrid>
0
1353
by: news.zen.co.uk | last post by:
Hi Guys, Using VB .NET 2003 and ASP1.1, I have a Datagrid embedded in an ASP page. In the processing of the ItemDataBound event I dynamically create a new Datagrid control within the Cell of the Parent (this refelect GUI'wise a Parent Child related data). I also add Handlers to the sub datagrid using AddHandler to handle the EditCommandColumn as well as ItemDataBound. Parent Datagrid...
8
1984
by: user1980 | last post by:
Hello, I need help creating a lookup page which has a datagrid view. My firstpage.aspx has a textbox and button. When the button is clicked, it would open a pop-up page with a datagrid which has 2 columns in it. The user can select a row and the selected row's text should appear in the textbox of firstpage.aspx. I tried using javascript but unable to retrieve the value of the selected row. So can somebody help. I am using asp.net and...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10378
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10391
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.