This is a migrated thread and some comments may be shown as answers.

How do I need to do for doing this working ok

1 Answer 36 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
iomega 55
Top achievements
Rank 1
iomega 55 asked on 21 Oct 2009, 06:35 AM
I have this code:

string text1="function teditDelayedScript() {    if (window.confirm('Se eliminara el registro seleccionado')) __doPostBack('ctl00$mpContentMain01_01$MotorTipoEditor','deleteselected');  }  window.setTimeout('teditDelayedScript()',300);";

radajaxpanel01.ResponseScripts.Add(text1);


How do I need to do for doing this working ok, after a callback?


This code is generated after a postback, so the content of the text1 variable is assigned dynamically on the server side.
__doPostBack('ctl00$mpContentMain01_01$MotorTipoEditor','deleteselected');

1 Answer, 1 is accepted

Sort by
0
Johny
Top achievements
Rank 1
answered on 23 Oct 2009, 01:37 PM
Hi Iomega 55,

You can try the following modification:

string text1 = "window.setTimeout(function(){if(window.confirm('Se eliminara el registro seleccionado')) __doPostBack('ctl00$mpContentMain01_01$MotorTipoEditor','deleteselected');},300)"
RadAjaxPanel1.ResponseScripts.Add(text1); 


I hope this helps.
Johny


Tags
Ajax
Asked by
iomega 55
Top achievements
Rank 1
Answers by
Johny
Top achievements
Rank 1
Share this question
or