Using c# to set default textbox value - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Using c# to set default textbox value Using c# to set default textbox value Last post 05-29-2009 10:22 PM by swathip. 1 replies. Page 1 of 1 (2 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-29-2009 01:34 PM ybotspawn Joined on 08-07-2008 Posts 5 Using c# to set default textbox value Reply Contact Ok, so I've written some c# code that queries a sql database for the next available ticket number. My c# code returns the latest ticket number + 1. How do I configure my form so that the ticket number textbox is set to the return value of my code? 05-29-2009 10:22 PM In reply to swathip Joined on 10-30-2007 India Posts 487 Re: Using c# to set default textbox value Mark as Not AnswerMark as Answer... Reply Contact Hi, Use the following code line to set a field value in C#. thisXDocument.DOM.selectSingleNode("Xpath of your text bxo field").text = returned value; Swathipwww.ggktech.com Page 1 of 1 (2 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Ok, so I've written some c# code that queries a sql database for the next available ticket number. My c# code returns the latest ticket number + 1. How do I configure my form so that the ticket number textbox is set to the return value of my code?
Hi,
Use the following code line to set a field value in C#.
thisXDocument.DOM.selectSingleNode("Xpath of your text bxo field").text = returned value;