Forum: ASP.NET Jan 10th, 2008 |
| Replies: 19 Views: 10,326 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,326 "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,326 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,326 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,326 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,326 Datatype bit takes the value 0 or 1.....if true then 1
if false then 0 |
Forum: C# Jan 7th, 2008 |
| Replies: 13 Views: 4,269 Yes Enum is Better.....approach....as Ramy says... |
Forum: C# Jan 7th, 2008 |
| Replies: 13 Views: 4,269 By using this query u'll get one Result.......from that u can check......userType
string st=Data["UserType"].ToString();
if(st=="Admin")
{//Open Admin Form}
else if(st=="User")
{// Open User... |
Forum: C# Jan 4th, 2008 |
| Replies: 13 Views: 4,269 Okay i thought.....he/she uses the single table....actually he/she writes...."The user login details for both admin and normal users are in a single table called account.."
if the user Type (admin... |
Forum: C# Jan 4th, 2008 |
| Replies: 13 Views: 4,269 Well Dear ....... u r saying u r developing a Windows Application ........There is nothing like Session in Windows app.....Session are used in Web app.
is there any Flag....in ur user table.....???... |