Hi,
I am trying to work out how to make reference to an asp textbox control
within a class, contained in a user control, but receive the following
error...
BC30469: Reference to a non-shared member requires an object reference.
Here is the code...
<%@ Control Language="VB" runat="server" %>
<script language="VB" runat="server">
Public Class clsEnterReport
Inherits System.Web.UI.U serControl
Public Event CancelClick()
Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s)
VisibleForm(fal se)
End Sub
Sub ReportForm()
VisibleForm(tru e)
End Sub
Sub CancelReport(se nder As Object, e As System.EventArg s)
VisibleForm(fal se)
RaiseEvent CancelClick()
End Sub
Sub VisibleForm(bln Form as Boolean)
lblAmount.visib le = blnForm
txtAmount.visib le = blnForm
btnReport.visib le = blnForm
btnCancel.visib le = blnForm
End Sub
End Class
</script>
<table>
<tr><td class="bodytext "><asp:labe l ID="lblAmount" runat="server"
Text="Amount:" /></td>
<td class="bodytext "><asp:text box runat="server" ID="txtAmount"
/></td></tr>
<tr><td class="bodytext "><asp:butt on ID="btnReport" runat="server"
Text="Submit Report" CssClass="btnCl ass" /></td><td
class="bodytext "><asp:butt on ID="btnCancel" runat="server" Text="Cancel"
CssClass="btnCl ass" OnClick="Cancel Report" /></td></tr>
</table>
..
..
..
Any assistance would be very much appreciated!!!!
Thanks
john.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!