Retrieving Conrtols custom attribute??
-
Hi, I am trying to read in a attribute that I have added to some fields (not all my fields have this attribute). That is what I want to base my loop through all the controls on a page with. Custom attribute is: PDFField ex: now each page can have mutiple or zero "custom" textboxes or any other input types. so far I cant seem to find a way to access each control to find if they have the PDFField attribute. Does anyone know how to do this? Thanks, Zach Bob
-
Hi, I am trying to read in a attribute that I have added to some fields (not all my fields have this attribute). That is what I want to base my loop through all the controls on a page with. Custom attribute is: PDFField ex: now each page can have mutiple or zero "custom" textboxes or any other input types. so far I cant seem to find a way to access each control to find if they have the PDFField attribute. Does anyone know how to do this? Thanks, Zach Bob
Hi, Isn't is just to read it using if(txt_Custom1.Attributes["pdffield"] != null) { do anything with it.... } I guess you know how to sweep through all controls in the form. Hope this helps.
Those who want most to speak up, are often those who have nothing clever to say.
modified on Friday, June 20, 2008 3:33 AM