Hi,
I would like some help. If I have five or more textboxes, I want to return the value to another textbox only if they contain values.
For example:
| example-1 | or | example-2 | ||
| label | textbox | label | textbox | |
| RED | 10 | RED | ||
| BLUE | BLUE | 1 | ||
| BLACK | 2 | BLACK | ||
| WHITE | WHITE | |||
| other | 1 | other | 1 | |
| label | textbox | label | textbox | |
| RED | 10 | blue | 1 | |
| BLACK | 2 | other | 1 |
Thanks in advance,
Varta.

Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Nov 9, 2024, 11:50 PM EST
Hi Luv,
Your question is not clear, can you explain a bit more?
Thank you.
Charles Henington54 reputationPosted Nov 10, 2024, 12:54 AM EST
It's hard to understand from your description but I believe your asking how to check if a textbox has a value or not?
If this is not your question please update your question so we can better understand.
if(!string.IsNullOrEmpty(textbox1.Text))
{
// do something with textbox1.Text
}