当前位置:网站首页>Source code of findcontrol
Source code of findcontrol
2022-06-26 05:30:00 【Eric (fengcan)】
Today, when looking for the control level permission implementation scheme, I found the... Provided by comrades on the Internet FindControl Source code , Keep this for standby .
in addition , The following link is about using... In various situations FindControl Look for control data :http://www.odetocode.com/Articles/116.aspx
public virtual Control FindControl(string id)
{
return this.FindControl(id, 0);
}
protected virtual Control FindControl(string id, int pathOffset)
{
string text;
this.EnsureChildControls();
if (!this.flags[0x80])
{
Control namingContainer = this.NamingContainer;
if (namingContainer != null)
{
return namingContainer.FindControl(id, pathOffset);
}
return null;
}
if (this.HasControls() && (this._occasionalFields.NamedControls == null))
{
this.EnsureNamedControlsTable();
}
if ((this._occasionalFields == null) || (this._occasionalFields.NamedControls == null))
{
return null;
}
char[] anyOf = new char[] { '$ ', ': ' };
int num = id.IndexOfAny(anyOf, pathOffset);
if (num == -1)
{
text = id.Substring(pathOffset);
return (this._occasionalFields.NamedControls[text] as Control);
}
text = id.Substring(pathOffset, num - pathOffset);
Control control2 = this._occasionalFields.NamedControls[text] as Control;
if (control2 == null)
{
return null;
}
return control2.FindControl(id, num + 1);
}
边栏推荐
- The parameter field of the callback address of the payment interface is "notify_url", and an error occurs after encoding and decoding the signed special character URL (,,,,,)
- 售前分析
- cartographer_optimization_problem_2d
- Baidu API map is not displayed in the middle, but in the upper left corner. What's the matter? Resolved!
- BOM文档
- Introduction to GUI programming to game practice (II)
- 基于SDN的DDoS攻击缓解
- Talk 5 wireless communication
- Anaconda creates tensorflow environment
- 红队得分方法统计
猜你喜欢

cartographer_ fast_ correlative_ scan_ matcher_ 2D branch and bound rough matching

慢慢学JVM之缓存行和伪共享

uniCloud云开发获取小程序用户openid

Uni app ceiling fixed style

Baidu API map is not displayed in the middle, but in the upper left corner. What's the matter? Resolved!
![C# 39. Conversion between string type and byte[] type (actual measurement)](/img/33/046aef4e0c1d7c0c0d60c28e707546.png)
C# 39. Conversion between string type and byte[] type (actual measurement)

Command line interface of alluxio

Leetcode114. 二叉树展开为链表

11 IO frame

PHP 2D / multidimensional arrays are sorted in ascending and descending order according to the specified key values
随机推荐
SOFA Weekly | 开源人—于雨、本周 QA、本周 Contributor
cartographer_pose_graph_2d
C# 39. Conversion between string type and byte[] type (actual measurement)
Security problems in wireless networks and modern solutions
C# 40. Byte[] to hexadecimal string
Command line interface of alluxio
Ad tutorial series | 4 - creating an integration library file
skimage. morphology. medial_ axis
循环位移
Daily production training report (15)
Leetcode114. Expand binary tree into linked list
第九章 设置结构化日志记录(一)
A new explanation of tcp/ip five layer protocol model
百度API地图的标注不是居中显示,而是显示在左上角是怎么回事?已解决!
生命原来如此脆弱
新的征程
Consul服务注册与发现
LeetCode_二叉搜索树_简单_108.将有序数组转换为二叉搜索树
ZigBee learning in simple terms Lecture 1
数据存储:MySQL之InnoDB与MyISAM的区别