简体   繁体   English

将Javascript与Asp.net一起用于ListBox

[英]Using Javascript with Asp.net for ListBox

I want to use ClientSide Javascript for listbox, it should take values from database table when the page is loaded first time OR load the specific table in javascript, Right Now, all the values are coming from database, if I select "StandardM1(CA)" 我想使用ClientSide Javascript作为列表框,第一次加载页面时应从数据库表中获取值,或者在javascript中加载特定表,现在,如果我选择“ StandardM1(CA),则所有值都来自数据库”

打开下拉菜单的用户界面

it brings all the values from "food_menu" table. 它从“ food_menu”表中获取所有值。

选择下拉选项后的用户界面

I want to do the the same thing with client-side javascript in order to save time and server requests, so that the application runs faster. 我想对客户端JavaScript执行相同的操作,以节省时间和服务器请求,以便应用程序运行更快。 Can some one please guide me? 有人可以指导我吗?

Faheem use array in it and try to do the coding right on the save button. Faheem在其中使用数组,然后尝试直接在保存按钮上进行编码。 its the save button that is creating problems 它的创建问题的保存按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM