CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2008
    Posts
    3

    Comparing value from Database with a radio button

    Hi, good day to all.
    I'm trying to create a method in which i would be able to gather data from a sqldatabase to compare it with the text of a radio button. The reason is that i wish to create a appointment like web page and this method is needed so as to ensure that similar timing is not chosen the second time by disabling the radio button if similar timing exist in the database.
    The question is i cant figure out a way to achieve what i want. Reason is because i have no idea how to store the data from the database so as to compare it with the text of the radio button.

    Could anyone help me on this? Thanks in advance

  2. #2
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Comparing value from Database with a radio button

    the counterpart filed of the radio button in the SQL SERVER database is BIT and in MySQL is Tiny Int and 1 is equal to True and 0 is equal to false.
    Note: i assumed you want comapre with the state of the radio button (selected/ not selected) not as you said with the text of the radio button.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured