By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

Looking for a better solution

P: n/a
Hi Everybody
I have a web application where i am reading data into a Dataset from a *.xml file and binding it to a datagrid so i can edit it in the web form.
The same Dataset i am entering into a Textbox so a JavaScript function can read it every 30 seconds and check some status and pop up a message if needed.

Everything is working fine, but i don't think that entering the same data into two different controls is a good idea so i just wanted to ask if there is an elegent way of doing this so I can remove the textbox and read data from the DataGrid at the client side or do something similar ?

Thanks in advance
Raja
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Rajesh,
What alternatively you could do is that at the time of binding your data to the datagrid you can trap the item data bound event of the datagrid, and in this event handler you can set a hidden fields, and then read it from the client side and do whatever you want to do.
Regards,
Zuzar L.

"Ing. Rajesh Kumar" <iambad(WithoutThis)@post.cz> wrote in message news:ux**************@tk2msftngp13.phx.gbl...
Hi Everybody
I have a web application where i am reading data into a Dataset from a *.xml file and binding it to a datagrid so i can edit it in the web form.
The same Dataset i am entering into a Textbox so a JavaScript function can read it every 30 seconds and check some status and pop up a message if needed.

Everything is working fine, but i don't think that entering the same data into two different controls is a good idea so i just wanted to ask if there is an elegent way of doing this so I can remove the textbox and read data from the DataGrid at the client side or do something similar ?

Thanks in advance
Raja
Nov 18 '05 #2

P: n/a
Hi,

DataGrid render as Table to the browser so you can decently use DHTML +
Java script to get values out of that table. You can use
RegisterClientSideScript together with control ClientID (return control
ID that will be render on client side) to render client side script that
get values from Grid table.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.