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

[Solved] Client Code from server

1 Answer 155 Views
Input
This is a migrated thread and some comments may be shown as answers.
Anders Bengtsson
Top achievements
Rank 1
Anders Bengtsson asked on 06 Mar 2008, 06:24 AM
Hello

I have a senario where we want to update some textboxes and we dont know wich until we are in the codebehind, and we dont want to set the ajaxsettings to update all textboxes.

I tried to do like this RadAjaxManager1.ResponseScript.add(script);

where script is $find('" + txtTest.ClientID + "').set_Value = 'test';

but I get null from the $find. Cant you referense like this. If i take the same code on a test page on button click then it works, but not with RadAjaxManager1.ResponseScript.add.

What am i doning wrong. Is there another solution to my problem. Can you in the codebehind say exaktly wich textboxes that should be updated.




1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 08 Mar 2008, 08:48 AM
Hi Anders Bengtsson,

Please review the following online help topic, which discusses adding Ajax settings in the code behind and let us know if it helps.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Anders Bengtsson
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or