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

[Solved] set combobox initial value load on demand

0 Answers 216 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Prabir
Top achievements
Rank 1
Prabir asked on 08 May 2008, 06:02 PM
function setv(sender,args)  
{  
   var id='<%# Eval("ID") %>';  
   sender.set_value(id);  
i have a combobox which resides inside a formview and uses objectdatasource.
my combobox is loaded on demand.
on the OnClientLoad function of combobox, i would like to set the value of the combobox which i get from objectdatasource in client side using <%# Eval("ID" %>.
But Eval doesn't seem to work inside javascript. I dont' wont to use server side programming ondatabinding of objectdatasource. I would like to use client side.
thanks

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Prabir
Top achievements
Rank 1
Share this question
or