How to access controls inside a DeviceSpecific template?

F

Francisco Araujo

Hi!

I am working with ASP.NET 2.0 in a Mobile Web Form that has several
controls inside a DeviceSpecific template, i would like to access the
controls there to change some properties, so far i had tried
Me.DeviceSpecific1.FindControl but i hadn't been able to found
anything.

Thanks,
Francisco Araujo
 
F

Francisco Araujo

After many hours looking a way to do it i was able to figure it out:

Dim Lbl As System.Web.UI.MobileControls.Label =
Me.ActiveForm.Footer.FindControl("lblRecCount")
Dim View As System.Web.UI.WebControls.GridView =
Me.ActiveForm.Footer.FindControl("grdOrders")
Lbl.Text = "(" + View.Rows.Count.ToString + ") Records found"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top