Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7566131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:20:02+00:00 2026-05-30T14:20:02+00:00

I have a table in mysql databse with a boolean column (or tinyint(1)). In

  • 0

I have a table in mysql databse with a boolean column (or tinyint(1)). In my web application i used a gridview to view the data from that table and I used a checkbox field for the boolean column. Everything’s ok till here. When I try to update a record, checking or unchecking the checkbox field using this query for the update:

UPDATE image SET `desc` = @desc, `ss` = @ss WHERE `id` = @id

the result is always the same: the desc field is correctly updated meanwhile the ss (boolean field) is always set to 0, even if maybe i set it to 1 or true. Any idea on how to do it? I paste the sqldatasource code below:

 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:dogservConnectionString %>" 
    DeleteCommand="DELETE FROM image WHERE `id` = @id" 
    ProviderName="<%$ ConnectionStrings:dogservConnectionString.ProviderName %>" 
    SelectCommand="SELECT * FROM image" 

    UpdateCommand="UPDATE image SET `desc` = @desc, `ss` = @ss WHERE `id` = @id">
    <DeleteParameters>
        <asp:Parameter Name="id" Type="Int32" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="desc" Type="String" />
        <asp:Parameter Name="path" Type="String" />
        <asp:Parameter Name="name" Type="String" />
        <asp:Parameter Name="ss" Type="Object" />
        <asp:Parameter Name="id" Type="Int32" />
    </UpdateParameters>
</asp:SqlDataSource>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:20:03+00:00Added an answer on May 30, 2026 at 2:20 pm

    I can’t help you with asp.net, but that looks very suspicious to me.
    You tell us that your ss column is a tinyint so type should be something like Int32 or bool.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a user table in my mysql database that has a password column.
I have a php script to retrieve data from a MysQL databse following an
I'm trying to normalize a mysql database.... I currently have a table that contains
i have a large mysql database table in which one column contains values ranging
I have a MySQL database, and a particular table in that database will need
I have a mysql table with over 4 million of data; well the problem
I have a table in my Mysql database, which is used for authentication. And
I have a table in a MySQL database from which I want to select
We have a web-based application, backed by a MySQL database. One part of the
I have a table in my MySQL database that looks like the following banner

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.