Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Values from a config file to a dataset

Status
Not open for further replies.

w0006941

Programmer
Jan 25, 2004
4
GB
Hi i have a value in a config file named "UOM"

I need this adding into a dataset that is in a Web Application. The name of the dataset field is called UOM

First i tried loading it straght in and this didnt work

this.dataSet1.UOM = configurationAppSettings.GetValue("UOM",
typeof(string)).ToString();


I tried also loading it into a textbox but the error that i am missing an assembly reference??

this.TextBox1.Text = configurationAppSettings.GetValue("UOM",
typeof(string)).ToString();

ANy idea's???

Cheers

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top