Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: btech_Saurabh ; Forum: ASP.NET and child forums
Forum: ASP.NET Jan 10th, 2008
Replies: 19
Views: 10,450
Posted By btech_Saurabh
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
Posted By btech_Saurabh
"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
Posted By btech_Saurabh
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
Posted By btech_Saurabh
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
Posted By btech_Saurabh
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
Posted By btech_Saurabh
Datatype bit takes the value 0 or 1.....if true then 1
if false then 0
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC