Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » ASP.NET »

Conversion from string "" to type 'Double' is not valid.


Posted Date: 11 Feb 2012      Posted By:: Kavin Antony Raj     Member Level: Bronze    Member Rank: 2580     Points: 5   Responses: 1



Hello

If ddlSubCategoryCode.SelectedValue = ddlSubCategoryCode.Items.IndexOf
(ddlSubCategoryCode.Items.FindByValue
(employee.SubCategoryCode.ToString())) Then

ddlSubCategoryCode.SelectedValue = "-1"

Else

ddlSubCategoryCode.SelectedValue = employee.SubCategoryCode

End If

this code
SubCategoryCode is string
but i see that Error - Conversion from string "" to type 'Double' is not valid.

pls help me




Responses

#657945    Author: Ultimaterengan        Member Level: Gold      Member Rank: 9     Date: 18/Feb/2012   Rating: 2 out of 52 out of 5     Points: 2

Dear friend,
SubCategoryCode this variable coming as empty. that's why you are getting this kind of error. so if SubCategoryCode is not empty then check your condition.



Thanks & Regards
G.Renganathan
Nothing is mine ,Everything is yours!!!


http://renganathan1984.blogspot.com/



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to extract name,objective from a resume(doc) in xml format...
Previous : ASP.net Scheduling Needed
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.