AJAX is a tool to do server side calls and send the data to the screen without a post back so you could recall the load of said datagrid... I am having a serious NDM production issue but if no body else explains this further I will try to when I get home tonight. sorry I can't write more now.
Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 | [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Michelle Zancanaro Sent: Tuesday, August 09, 2005 1:54 PM To: [email protected] Subject: RE: [AspNetAnyQuestionIsOk] How do you refresh a datagrid on the client side Hi Travis -- As I said, I'm new to all of this....anyway, I went to that link and am not seeing any way to add a record to a datagrid without having the page refresh. If you could provide some additional information/details, etc., I'd really appreciate it. Thanks, Michelle ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Falls, Travis D (HTSC, CASD) Sent: Tuesday, August 09, 2005 12:06 PM To: '[email protected]' Subject: RE: [AspNetAnyQuestionIsOk] How do you refresh a datagrid on the client side There is an awosome product (free) called AJAX that allows you to do this. http://ajax.schwarz-interactive.de/csharpsample/default.aspx Has a learning curve but I think many on this list have used and is decently worth it. Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 | [EMAIL PROTECTED] -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of mzancana Sent: Tuesday, August 09, 2005 12:56 PM To: [email protected] Subject: [AspNetAnyQuestionIsOk] How do you refresh a datagrid on the client side Hi -- I'm fairly new to .NET. I've got a webform application that records the amount of time an employee spends on a job. The jobs/time for a given period are then displayed in a datagrid. I'd like it all to run client side, so the screen doesn't load again. When I add a record, the information is added to the database (we're using remote scripting for that). And the information in the record is available if I do xmlDoc.transformNode(xslDoc) -- I can see that the info is retrieved when I view it using the command window in debugger mode. But.....the datagrid does not get updated with the new record. Has anyone added rows/records to a datagrid without a page refresh? Any help/suggestions and especially sample code are greatly appreciated!! Here's the Javascript function I'm using to load/reload the datagrid table (sorry about the way the text wrapped): function LoadTable() { var Employee = document.getElementById ("_ctl1__ctl0_ddlEmployee").value; var StartDate = document.getElementById ("_ctl1__ctl0_TextStartDate").value; var EndDate = document.getElementById ("_ctl1__ctl0_TextEndDate").value; // Update the xml island with the employee history information var oResult = Methods.EmployeeActivity(Employee, StartDate, EndDate); var xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load("activityhistory.xml"); var loaded = xmlDoc.loadXML(oResult.value); if (loaded) { var xslDoc=new ActiveXObject ("Microsoft.XMLDOM"); xslDoc.async=false; xslDoc.load("ActivityHistoryStyle.xsl"); document.getElementById ("Table1").insertAdjacentHTML = xmlDoc.transformNode(xslDoc); } } Yahoo! Groups Links ************************************************************************ * PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. ************************************************************************ * SPONSORED LINKS Programming languages <http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Programmin g+languages&w2=C+programming+language&w3=Computer+programming+languages& w4=Java+programming+language&w5=C+++programming+language&w6=History+of+c omputer+programming+language&c=6&s=198&.sig=hjFSMmldhVc3zrT5SqL9xQ> C programming language <http://groups.yahoo.com/gads?t=ms&k=C+programming+language&w1=Programmi ng+languages&w2=C+programming+language&w3=Computer+programming+languages &w4=Java+programming+language&w5=C+++programming+language&w6=History+of+ computer+programming+language&c=6&s=198&.sig=td85HQ93XfErfw7wfLZ86A> Computer programming languages <http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=P rogramming+languages&w2=C+programming+language&w3=Computer+programming+l anguages&w4=Java+programming+language&w5=C+++programming+language&w6=His tory+of+computer+programming+language&c=6&s=198&.sig=BMtgOo7dpsC1xzn1Ygp BPg> Java programming language <http://groups.yahoo.com/gads?t=ms&k=Java+programming+language&w1=Progra mming+languages&w2=C+programming+language&w3=Computer+programming+langua ges&w4=Java+programming+language&w5=C+++programming+language&w6=History+ of+computer+programming+language&c=6&s=198&.sig=8IuywkhSLTtpB6_iFiJoCQ> C programming language <http://groups.yahoo.com/gads?t=ms&k=C+++programming+language&w1=Program ming+languages&w2=C+programming+language&w3=Computer+programming+languag es&w4=Java+programming+language&w5=C+++programming+language&w6=History+o f+computer+programming+language&c=6&s=198&.sig=jpmDiGf8qD8AqZNqFwDO7w> History of computer programming language <http://groups.yahoo.com/gads?t=ms&k=History+of+computer+programming+lan guage&w1=Programming+languages&w2=C+programming+language&w3=Computer+pro gramming+languages&w4=Java+programming+language&w5=C+++programming+langu age&w6=History+of+computer+programming+language&c=6&s=198&.sig=9slR1_vZJ lvyOINA4iLkow> ________________________________ YAHOO! GROUPS LINKS * Visit your group "AspNetAnyQuestionIsOk <http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] cribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . ________________________________ [Non-text portions of this message have been removed] Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h7b7oks/M=362335.6886445.7839731.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123617835/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
