VB.NET Coding error
Hi, I was creating a webform and I got one error and I don't know what does it means can anyone help me with it?
The Error: Reference to a non-shared member requires an object reference.
The underline and bold line.
My login Page:
Username:
<asp:TextBoxID="UserID"runat="server">User1</asp:TextBox>Try
If s.ConnectedThens.Send(bytesSent, bytesSent.Length, 0)
Dobytes = s.Receive(bytesReceived, bytesReceived.Length, 0)
receiveText = Encoding.ASCII.GetString(bytesReceived, 0, bytes)
receiveXMLText = receiveXMLText + receiveText
If receiveText.IndexOf("</packet>")ThenquitRequest =
TruereceiveXMLText = receiveXMLText &
"</packet>"EndIf'Application.DoEvents()LoopWhile quitRequest =FalsequitRequest =
Falsereply =
New StringReader(receiveXMLText)xmlRead =
New XmlTextReader(reply)While xmlRead.ReadSelectCase xmlRead.NodeTypeCase XmlNodeType.TextLoginResult = xmlRead.Value
If LoginResult.Equals("1")ThenController.docInfo = Login.UserID.Text
'Application.DoEvents()ElseMsgBox(
"Sorry, you have entered an invalid username or password.", MsgBoxStyle.Exclamation,"Error")EndIfExitWhileEndSelectEndWhileEndIfCatch exAs ExceptionEndTry
