Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: DropDownList vs TextBox Problem _____SOS___


Message #1 by "Hovik Melkomian" <melvik@b...> on Wed, 9 Oct 2002 19:01:48 +0330
Hi friends:
I have a ASP.NET Web Application with C#  &
1 TextBox == City_Code
1 DropDownList == City_List as City_Code in Value + City_Desc in Text  (form SQL2000)

Well these 2 controls r connected if one changed the next one is changing too & works
great
But ploblem is accrued when typed value in TextBox does not exist in City_Code
How can I check if the value is in the range of City Codes.

e.g:

    DropDownList.Value >> City_Code{1,2,3,4,5,6,7,8,9}
    if(TextBox.Text  IN  {1,2,3,4,5,6,7,8,9}
        IS OK!!!!
    else
        ERROR in Page

I hope I was clear.
Please Help me,
Hovik.






  Return to Index