Re: Generating dynamic form elements "<asp:button ..."

From: Hans Kesting (news.2.hansdk_at_spamgourmet.com)
Date: 07/27/04


Date: Tue, 27 Jul 2004 11:03:46 +0200


"Venus" <some@gal.net> wrote in message news:WbmNc.103175$Rf.2421@edtnps84...
> Hello,
>
[snip]
>
> strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf
> strForm += "<asp:button name=""myName"" .... runat=""server"" />" & vbCrLf
> strForm += "<asp:button ....... runat=""server"" />" & vbCrLf
> strForm += "</form>" & vbCrLf
>

Just an offtopic note: if you are going to do a lot of "string += otherstring"
statements, consider using StringBuilder instead. It's a lot faster for
string concatenation.

Hans Kesting


Loading