Dear Freinds I face a problem that if i make a datattype in sql server of Integer and then use it in linq to sql query it give error of "specific cast not valid" and when i change datatype into varchar the linq to sql query work fine

one more thing how to use linq to sql query to make crystal report

Sounds like you changed it from varchar to integer and didn't change the DataContext to match.

how to change datacontext varchar into integer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.