Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > passing int values to asp:dropdownlist using javascript at page l

Reply
Thread Tools

passing int values to asp:dropdownlist using javascript at page l

 
 
deepak kumar
Guest
Posts: n/a
 
      10-29-2004
i want to populate dropdownlist through integer values(0...up to 29) by
javascript at client side
i m confuse ........my code is
var newOptionElement = document.createElement("<option value='" + your
Value+ "'>" + yourtext + "</option>");
document.Form1.ddlShipperState.add(newOptionElemen t);

but error is OBJECT EXPECTED ,,,
can any true friend give me complete clean code



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why is int a[0] not allowed, but int* a = new int[0] is? haijin.biz@gmail.com C++ 9 04-17-2007 09:01 AM
Difference between int i, j; and int i; int j; arun C Programming 8 07-31-2006 05:11 AM
int a[10]; int* p=(int*)((&a)+1); But why p isn't equal to ((&a)+1)? aling C++ 8 10-20-2005 02:42 PM
int main(int argc, char *argv[] ) vs int main(int argc, char **argv ) Hal Styli C Programming 14 01-20-2004 10:00 PM
dirty stuff: f(int,int) cast to f(struct{int,int}) Schnoffos C Programming 2 06-27-2003 03:13 AM



Advertisments