oIE = createobject( "internetexplorer.application" ) oIE.Visible = .t. oIE.Navigate( "www.google.com" ) do while oie.Busy() doevents enddo loDoc = oIE.Document && get the Document object loForm = loDoc.forms(0) && get the first form object loForm.Item(3).Value = "foxpro" && this is the field for the search string loform.Submit() && submit the form you can use code like to find the items of a form: * explore the form items for i = 0 to loForm.Length-1 ? i, loForm.Item(i).Name, loForm.Item(i).Value endfor You can also access the items by their names: loItem = loForm.item( "q" ) loItem.value = "this is so cool">Okay, basically I need to control a Microsoft agent in an ASP.net/C# page. I can load the agent without any problems and get it to read some text. But I want the text that is read to be a value from a database. The agent has to run on the client. Therefore, I need to read the value of the control in the body of the HTML code.