.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

error:Failed to convert parameter value from a String to a Boolean.

Posted By: shahin     Posted Date: January 05, 2010    Points:2   Category :ASP.Net
Failed to convert parameter value from a String to a Boolean.

if (rdBuyer.Checked)
obj[0] = rdBuyer.Text;
else
obj[0] = rdSeller.Text;

In sql datatype is char(5)

Responses
Author: Venkat             
Posted Date: January 05, 2010     Points: 5   

HI,

And what is the value you are trying to convert? you can only convert 1,0 or true false to a Boolean value.

Regards
Venkat

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: MAHESH             
Posted Date: January 07, 2010     Points: 5   

hi shahin

try this

rdBuyer.Text.toString();



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend