How to get a controlid in infopath 2007 c# - InfoPath Dev
in

InfoPath Dev

How to get a controlid in infopath 2007 c#

Last post 07-09-2010 08:37 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-09-2010 02:24 AM

    How to get a controlid in infopath 2007 c#

    Hi, i'm trying to get the controlid from a field or a button to use javascript. So what i need is something like this:

     Control mycontrol = (button or field control as a control type);

    string myControlClientID = mycontrol.ClientID;

     ---------------------------------------------------------------------------------------------------

    I don't know how to get mycontrol there... can someone help me on this?

    Thanks.

  • 07-09-2010 08:37 AM In reply to

    Re: How to get a controlid in infopath 2007 c#

    I'm not sure what you mean by "to use javascript," but InfoPath controls cannot be directly accessed from code.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.