D
Doug
I've got a user control (.ascx) which sets various properties on
controls on the parent. It works fine for a specified form.
I'm trying to make it a bit smarter, specifically for use on mobile
pages where there are multiple forms, by looping through all the forms
on the parent page.
I need something like: foreach(Form frm in Page.Controls) or similar,
but this just gives me "Specified cast is not valid".
2 questions:
1. Can someone help me out with the syntax here?
2. Is it ok to have user controls on mobile forms or is there some
"mobile alternative"?
Thanks!
controls on the parent. It works fine for a specified form.
I'm trying to make it a bit smarter, specifically for use on mobile
pages where there are multiple forms, by looping through all the forms
on the parent page.
I need something like: foreach(Form frm in Page.Controls) or similar,
but this just gives me "Specified cast is not valid".
2 questions:
1. Can someone help me out with the syntax here?
2. Is it ok to have user controls on mobile forms or is there some
"mobile alternative"?
Thanks!