Click here to Skip to main content
15,889,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i create a server side control like list box using javascript. is it possible ? Thank you.
Posted
Comments
♥…ЯҠ…♥ 14-Nov-13 0:15am    
is this question about creating custom control using javascript or creating server controls using javascript?
Rambo_Raja 14-Nov-13 0:42am    
server controls
Sergey Alexandrovich Kryukov 14-Nov-13 0:54am    
What is that beast, "server-side control"? Are you sure you know how ASP.NET controls work?
—SA

1 solution

No, not possible.

Think about this once. Server side controls are always created from the Server side. When they are rendered to browser, they become HTML controls, but there are many other properties, functions and events injected so that they behave as Server side controls.

When you create any control at Client side, that will only take effect on browser side. You can't make that a server control.
 
Share this answer
 
Comments
Rambo_Raja 14-Nov-13 1:11am    
i want to work on textbox auto complete extender. the results it show always displays on a div what i want it to display in listbox. is it possible.? To do that i have asked this question. thanks for answer.
If you are using any jQuery plugin for this, then you have to refer the Plugin js file code where it generates the resultant div. You have to change that code to generate a table and style that in such a way that it will look like ListBox.
Rambo_Raja 14-Nov-13 2:07am    
so there is i think now no way other than using Jquery. ?
Rambo_Raja 14-Nov-13 2:08am    
right now i am not using any jquery. do i have to.??
If you are using Ajax Autocomplete, then I think you can, but that will be a lot of headache.
If you use jQuery Autocomplete, then you have a chance following the way I said in my previous comment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900