Redian新闻
>
dynamic change before refreshing
avatar
dynamic change before refreshing# DotNet - 窗口里的风景
d*t
1
Does .net support some javascript features? For example:
(1) Shopping cart: items can be added to or deleted from a diplayed shopping
cart once users clicks some checkboxes on a item list webpage. I found there
is no refresh at all after selecting an item in javascript, but there will be
a refresh after an item is checked if we want to update the shopping cart
content once an item is selected.
(2) Simliarly, if we want to display coresponding cities for a state once it
is clicked on the same web
avatar
k*i
2

be
extra
asp.net is server-side script,that's how it works.But you can combine client
side javascript in this scenario.

【在 d****t 的大作中提到】
: Does .net support some javascript features? For example:
: (1) Shopping cart: items can be added to or deleted from a diplayed shopping
: cart once users clicks some checkboxes on a item list webpage. I found there
: is no refresh at all after selecting an item in javascript, but there will be
: a refresh after an item is checked if we want to update the shopping cart
: content once an item is selected.
: (2) Simliarly, if we want to display coresponding cities for a state once it
: is clicked on the same web

avatar
b*s
3
Sure,you can do that. You can combine javascript with asp.net. This because
you can associate html controls with javascript and embed those controls in
.aspx page just like what you usually do in .html page.All web controls
delivered by .net are server side controls by default. For your example
1>Use asp.net checkbox instead of html checkbox and set it as
autopostback.Whenever you click this checkbox,the page will be refreshed.
2>Use html checkbox instead of asp.net checkbox.Write javascript as

【在 d****t 的大作中提到】
: Does .net support some javascript features? For example:
: (1) Shopping cart: items can be added to or deleted from a diplayed shopping
: cart once users clicks some checkboxes on a item list webpage. I found there
: is no refresh at all after selecting an item in javascript, but there will be
: a refresh after an item is checked if we want to update the shopping cart
: content once an item is selected.
: (2) Simliarly, if we want to display coresponding cities for a state once it
: is clicked on the same web

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。