HtmlGenericControl和id [英] HtmlGenericControl and id

查看:167
本文介绍了HtmlGenericControl和id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是有办法,我可以控制我的HtmlGenericControl的ID。

It's there a way i can control the ID of my HtmlGenericControl.

我尝试创建自己的HtmlGenericControl和覆盖的UniqueID,客户端ID,在preRender等...但没有工作

I try to create my own HtmlGenericControl and override UniqueID, ClientID, onPreRender etc ... but nothing work

推荐答案

下面的文章演示如何重写控制自己的ID。虽然它并没有说明如何做到这一点对htmlgenericcontrol它应该是pretty的容易从所有其他的例子搞清楚。

The following article demonstrates how to override controls your own ID's. Whilst it does not show how to do it for htmlgenericcontrol it should be pretty easy to figure out from all the other examples.

<一个href="http://www.bytechaser.com/en/articles/ts8t6k5psp/how-to-display-aspnet-controls-with-clean-id-value.aspx"相对=nofollow>如何显示Asp.Net控制与清洁ID值

这篇关于HtmlGenericControl和id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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