Search Results

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: btech_Saurabh
Forum: ASP.NET Jan 10th, 2008
Replies: 19
Views: 10,326
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,326
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,326
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,326
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,326
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,326
Posted By btech_Saurabh
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
Posted By btech_Saurabh
Yes Enum is Better.....approach....as Ramy says...
Forum: C# Jan 7th, 2008
Replies: 13
Views: 4,269
Posted By btech_Saurabh
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
Posted By btech_Saurabh
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
Posted By btech_Saurabh
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.....???...
Showing results 1 to 10 of 10

 


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

©2003 - 2009 DaniWeb® LLC