1
Answer

Read input from xaml

Hi Guys, I am completely new to C#/WPF. This is my first try. I have created a view, and want to use the input to update a database. What are the procedures. 
Answers (1)
0
Vimal Kandasamy

Vimal Kandasamy

NA 2.3k 152.3k 15y
Hi,

In a button click event

you simply check like
firstname.Text.Lengh<1
or firstname.Text==""

[firstname refers Textbox]...
for zip
if(zip.Text.Length==5))
{
//add you code
}
else
MessageBox.Show("zip must be 5 chars","Error");

[zip refers Textbox]

you can combine these conditions with the help of && operator
try it..