|
|
C#
protected void Button1_Click(object sender, EventArgs e)
{
var ctrl = from ctr in this.Controls.Cast<Control>().OrderBy(c => c.ID)
select ctr;
}
VB.NET
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim ctrl = _
From ctr In Me.Controls.Cast(Of Control)().OrderBy(Function(c) c.ID) _
Select ctr
End Sub
'Like' us on our FaceBook page if you find this blog useful. Thanks!
Did you like this post?
|
|
|
||
|
|
|
|
Save on Delicious |
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |




comments
0 Responses to "Fetching all controls on a page ordered by their ID"Post a Comment