R
rcoco
Hi,
How could i translate Bool(VB) into c#?
Thanks
How could i translate Bool(VB) into c#?
Thanks
bool x = (bool) ( expression );
However you shouldn't have to as the expression will evaluate to true or
false, so;
bool x = expression
is usually enough. If you want to turn "True" or "False" into a bool;
bool x = bool.Parse(boolString)
- Show quoted text -
Thanks,
I have Changed I've seen that I can actually use Set Up Windows
Authentication but When I insert data I get an error
Cannot insert the value NULL into column 'Name', table
'IS_dashboard.dbo.DashBoard'; column does not allow nulls. INSERT
fails. The statement has been terminated.
What could be the problem?
Thanks,
The field name is supposed to get the name of the login computer so
it's not supposed to remain null. I got this example, and that's what
I'm using.This is the web.Config file:
<authentication mode="Windows">
...
</authentication>
<authorization>
<deny users="?" />
</authorization>
Got it on this website:http://www.asp101.com/articles/cynthia/authentication/default.asp
Thanks