Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ...!!

i write code for updating admin and other content but when i click on edit image button in data grid then i get error look like this

" String was not recognized as a valid Boolean.? "

and does not contain got all text boxs empty

anybody help me...!!

thanks
Posted

No, we can't help from such scanty info.
Is the error an Exception? If so, what is throwing it?
If it just a dialog? If so, what is displaying it?

Post a code fragment that gives the problem. (enclose it in <pre>...</pre> tags with the "code block" widget to preserve any formatting)

Remember to do this by editing your question, not by pressing the "Add answer" button.
 
Share this answer
 
You need to post some code here for someone to really help.

However, looking at your error, you are probably doing an implicit cast somewhere (which is wrong).

Try to convert your string to a boolean by writing logic like
if (mystr =="..." 
{
return true;
}
else
{
return false;
}
 
Share this answer
 
v2
Comments
narendrarathod 17-May-10 8:47am    
thanks for replying ..

yes i used that format but error yet .. my problem is that when i click on Edit image button and it goes to next page add_content but in that page i want to fill all content id and name but i show textbox empty n got directly msg "String was not recognized as a valid Boolean"

please tell me what can i do for it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900