在提交按钮单击时使用jquery在aspx页中为ascx控件应用样式 [英] apply styles for ascx controls in aspx page using jquery on submit button click

查看:81
本文介绍了在提交按钮单击时使用jquery在aspx页中为ascx控件应用样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有ascx页,我已添加到aspx页.现在,我想动态地将css应用于ascx页面中的控件,即仅使用jquery的文本框,下拉列表等.

Hi, i have ascx page and i added to the aspx page. now i want to apply css dynamically for controls in ascx page i.e for textboxes , dropdown etc. using jquery only.

推荐答案

如果必须在客户端上执行此操作,本文 [
If you must do this on the client, this article[^] outlines how to switch styles using JavaScript.


Remember that any ASP.NET Skins/Themes will not be applied: these are embeded into the rendered HTML at runtime.


这篇关于在提交按钮单击时使用jquery在aspx页中为ascx控件应用样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆