"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uv**************@TK2MSFTNGP03.phx.gbl...
"Lloyd Sheen" <a@b.cwrote in message
news:E1**********************************@microsof t.com...
>Perhaps I have missed something but what I would like to do is have a
more "controlled" method of generating HTML from a web service.
What technique are you using now for generating HTML from a web service?
The usual way to do it is to have the web service return data, then to
have an ASP.NET page bind the data to controls which will produce the
HTML.
--
John Saunders [MVP]
At present I am just creating strings of the output HTML. I was looking for
a structured method using dotnet objects. Something like (just typed in so
most likely has errors)
<WebMethod()_
Public Function JustATest(ByVal Name As String) As String
Dim s As String = String.Empty
Dim tab As New HtmlTable
Dim r1 As New HtmlTableRow()
Dim c1 As New HtmlTableCell()
c1.InnerText = "Col1"
Dim c2 As New HtmlTableCell()
c2.InnerText = Name
r1.Cells.Add(c1)
r1.Cells.Add(c2)
tab.Rows.Add(r1)
dim s as string=string.empty
s=tab.??????
return s
End Function
????? would be a method name which would then issue the HTML to represent
the table and its contents.
Lloyd Sheen