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.
Charles HeningtonPosted Nov 10, 2024, 5:54 AM
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
}
Muhammad Imran AnsariPosted Nov 10, 2024, 4:50 AM
Hi Luv,
Your question is not clear, can you explain a bit more?
Thank you.