View Single Post
  #1 (permalink)  
Old March 2nd, 2007, 07:45 AM
veeruu veeruu is offline
Authorized User
 
Join Date: Jan 2006
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with ObjectDataSource...

Hi,
 Im using Asp.Net 2.0, to insert the data to DB. i have to accept the <,>,&,'," too. so, im using HttpUtility.HtmlEncode to store the user input to DB.

 My problem is now i hav to display that info in a DropDownList using
ObjectDataSource. But the data is in encoded format( i.e. instead of < is diplaying &lt; ....). How to diplay the data in dropdownlist in a proper manner.

ex : actual input <7 & 5>
      in Dropdown it shows &lt;7 &amp; 5&gt;
      Expected result <7 & 5>



 Please help me to come out off this ....


Thanks & Regards,
Veeruu..