I'm this far in determining the correct code to find a textbox I need to
set.
Me.Master.FindC ontrol("Body1") .FindControl("F orm2").FindCont rol("Table2").F indControl("Tab leRow7").FindCo ntrol("TableCel lR7C2S2").FindC ontrol("RightCP H").FindControl ("div1").FindCo ntrol("div2").F indControl("Log inView1")
Took me longer than I want to say to produce the above and I'm not there
yet.
Isn't there a better way? Seems a routine that recursively searches might
work.
So my question is: Is there a better way or do I have to keep working to
finish the above.
Thanks
PS Then if a year form now someone changes almost anything in the .aspx file
this will break!
set.
Me.Master.FindC ontrol("Body1") .FindControl("F orm2").FindCont rol("Table2").F indControl("Tab leRow7").FindCo ntrol("TableCel lR7C2S2").FindC ontrol("RightCP H").FindControl ("div1").FindCo ntrol("div2").F indControl("Log inView1")
Took me longer than I want to say to produce the above and I'm not there
yet.
Isn't there a better way? Seems a routine that recursively searches might
work.
So my question is: Is there a better way or do I have to keep working to
finish the above.
Thanks
PS Then if a year form now someone changes almost anything in the .aspx file
this will break!
Comment