lundi 6 avril 2015

Passing checkbox value from one webpage to another - Giving error

In a previous post, I had a problem with my checkbox where the value wasn't passing from my first webpage (gridview) to my second webpage. The post was Passing gridview's checkbox value to another webpage. In the Gridview_SelectedIndexChanged, I was told to change the Response.Redirect for the checkbox on the first webpage to Ctype(row.Cells[3].Controls[0], CheckBox).Checked.ToString(). In the Page_Load code for the new webpage, I was told to change the the checkbox code to AllDay.Checked = Boolean.Parse(Request.QueryString("AllDay_YesNo")). AND then it worked wonderfully until last week.


Now, I'm getting an error - The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.


In my SQL database - , AllDay_YesNo is a bit with a default value or binding of ((0)).


Why did this stop working? If you need to see any code, please let me know asp or vb and 1st or 2nd webpage. Thanks in advance!





Aucun commentaire:

Enregistrer un commentaire