---
title: "ASP.NET js获取服务器控件客户端编码"
author: "alovejun"
date: "2011-09-19T16:32:24Z"
tags: []
categories: ["Web前端"]
slug: "asp-net-js"
draft: false
lastmod: "2011-09-19T16:32:24Z"
id: 1175224
url: "https://alovejun.iteye.com/blog/1175224"
---

```
// 获取服务器控件客户端编码
jQuery("#<%=NetPage.ClientID %>")
// 示例
jQuery("#<%=NetPage.ClientID %>").css("display", "none");
```