I am checking a value in textbox control “txtType” and I have 3 possible values: it is either TypeA, TypeB or TypeC. So all what I want to do is:
This is what I have so far

```
string myType= ((TextBox)DV_LogAdd.FindControl("txtType")).Text.ToString();
int  updatedType;
If string myType = ‘TypeA’ then set updatedType to 1
If string myType = ‘TypeB’ then set updatedType to 2
If string myType = ‘TypeC’ then set updatedType to 3

```

I have tried to use switch statement but messed up.