Need help and getting no response with adding cont

1. Senior Member
Join Date
Dec 1969
Posts
357

## Need help and getting no response with adding cont

I&#039;ve made a posting but dont seem to be getting any thoughts and I am getting desperate beyond words now. I&#039;ve got to compile an entire .net page and return it as a string as part of a Web Service . The problem I have is that I need to add WebControls and functionality to the page so that not only the html content and images are displayed (which I&#039;ve managed) but that textboxes, labels, buttons and datasets can be displayed also. Code is currently built as follows into a string:<BR><BR>strOpenHTML &= "&#060;table width=""98%"" height=""98%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0""&#062;"<BR>strOpenHTML &= " &#060;tr&#062;"<BR>strOpenHTML &= " &#060;td align=""center"" valign=""middle""&#062;"<BR>strOpenHTML &= " &#060;table width=""740"" height=""400"" border=""0"" cellpadding=""0"" cellspacing=""0"" bgcolor=""#CCFFFF"" style=""border:1px #000000 solid;""&#062;"<BR>strOpenHTML &= " &#060;tr&#062;"<BR><BR>etc.<BR><BR>I&#039;ve tried to declare an html form tag and adding it as a control:<BR>Dim frmForm As HTMLForm<BR>frmForm.ID = "myForm"<BR>Controls.Add(frmForm)<BR><BR>but I&#039;m not having any joy. Is there a way around this or will I have to add html elements as html? Is there any way I can add functionality to the form without having it in my calling page i.e. click the button to invoke Method X on the server?<BR><BR>PLEASE can someone offer some thoughts! I&#039;m going completely mad looking for info on this!<BR><BR>Lloyd

2. Senior Member
Join Date
Dec 1969
Posts
2,227

## RE: Need help and getting no response with adding

I&#039;m not an expert or anything so, i dont know the answer. If noone else responds, then go to <BR><BR>www.dotnetforums.net<BR><BR>they might be able to help.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•