Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

VS 2008 C# text field value into string variable.

Avatar of rwheeler23
rwheeler23Flag for United States of America asked on
.NET Programming
6 Comments1 Solution567 ViewsLast Modified:
I have a text field on a form called txtDocType. In the database the value is actualy an integer value rangng from 1-9. I have a case statement that converts the number to 1-Sales, 2-Order, 3-Quote , etc. The string value displays correctly on the screen. Now I also have a string variable called TranType. I simply want to assign the value of txtDocType to the string varialble TranType. I thought this would do the trick:

TranType = txtDocType.Text;
So the values of TranType will be Invoice, Order, Quote, etc.
The value for TranType is always null. What am I missing here?
ASKER CERTIFIED SOLUTION
Avatar of guru_sami
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers