KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This works just fine: protected void txtTest_Load(object sender, EventArgs e) { if (sender is TextBox) {...} } Is there a way to check if sender is NOT a TextBox, some kind of an equivalent of != for "is"? Please, don't suggest moving the logic to ELSE{} :)
Tags (comma-separated)
Save Edits
Cancel