9
Answers

cannot implicitly convert type 'bool' to 'system.data.

Vignesh Kumar

Vignesh Kumar

11y
1.9k
1
Hi,

I get this attached error and couldn't sort this out.

cannot implicitly convert type 'bool' to 'system.data.datatable'                  

Attachment: error.zip

Answers (9)
0
Pavan R Bhupalam

Pavan R Bhupalam

NA 888 181k 11y
Better TypeCast that one...
0
Vignesh Kumar

Vignesh Kumar

NA 1.1k 223.6k 11y
I tried this earlier, but no luck.
0
Sanjeeb Lenka

Sanjeeb Lenka

NA 22.1k 1.3m 11y
hi,
in my system it not showing any error. what i will suggest you to  delete the DAL reference from BLL and add it again and check.
0
Sanjeeb Lenka

Sanjeeb Lenka

NA 22.1k 1.3m 11y
share your code.
0
Vignesh Kumar

Vignesh Kumar

NA 1.1k 223.6k 11y
I gave a try and still is the same.
0
Sanjeeb Lenka

Sanjeeb Lenka

NA 22.1k 1.3m 11y
Clean your solution and rebuild it
0
Vignesh Kumar

Vignesh Kumar

NA 1.1k 223.6k 11y

Attachment error.zip

Hi,

Now I get this attached error. Can you pls help me out.
0
Vignesh Kumar

Vignesh Kumar

NA 1.1k 223.6k 11y
Hi,

Yeah that was a blunder and got it:)
0
Sanjeeb Lenka

Sanjeeb Lenka

NA 22.1k 1.3m 11y
HI,

your return type of method insert is datatable and you are asigning it to bool variable. thats why error is showing.