I encountered an error. Despite declaring the variables (failturetext and userName) errors still appear. Can anyone please help me?
- Use of Unassigned local va
Regarding the compiler message - look at this link
TextBox FailureText; - you declared a variable, but it is not initialized. you might set it to null / a value / default() - but you must initialize it
TextBox UserName; - the same
when you call UserName.Text - the compiler alerts for the uninitialized UserName