Hello,

I'm having a problem with some of my code. I've named the form and in the code it is not recognizing it.

Here is the code:

VB Code:
  1. Dim SB As New StringBuilder
  2.         Dim SW As New StringWriter(SB)
  3.         Dim htmlTW As New HtmlTextWriter(SW)
  4.  
  5.         formname.RenderControl(htmlTW)  ' Here is where Im getting the error
  6.  
  7.         Dim test As String = SB.ToString()
  8.         Dim i As String = test

Here is part of the tags:
Code:
	</HEAD>
	<body topmargin="0">
		<form id="formname" runat="server">