Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 Dear.......u can not cast an integer value into a bool type variable.......u pass the value to ur Bit column according to 1 or 0...
do one thing........create a table in sql server........and... |
Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 "anndept.announceToFaculty " this function is of bool type change this function dear.........
change this function dear........ |
Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 do this thing.....take one int type variable....
Int32 i;
if (facultychecked.Checked == true)
{
i =1;
}
else
{ |
Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 u can not assign 1 or 0 to a bool type variable.......
use Int type variable......and then assign 1 or 0 |
Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 yes this is because.......it consist only true or false.....if 1 then true and if 0 then false
ur code must b like this
if (facultychecked.Checked == true)
{
anndept.announceToFaculty =1;
}... |
Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,450 Datatype bit takes the value 0 or 1.....if true then 1
if false then 0 |