Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
which namespace is used for Serialize in asp.net
Posted

Hi use below namespace

C#
using System.Runtime.Serialization;
 
Share this answer
 
v2
Comments
sanjay acharya 7-Feb-12 5:54am    
This namespace is not working
That's Aragon 7-Feb-12 5:58am    
You have not mentioned the serialization type. If you are doing JavaScript serialization then you should use System.Web.Script.Serialization, otherwise Sarvesh have provided right solution.
Hi,

Add System.Runtime.Serialization.dll reference in your project references and refer the same in your code as,

using System.Runtime.Serialization;


hope this helps.
 
Share this answer
 
v2
add reference of System.Runtime.Serialization.dll to project and write
C#
using System.Runtime.Serialization;

on .aspx.cs page
 
Share this answer
 
v3
C#
using System.Runtime.Serialization;


for JavaScript Serialization
C#
using System.Web.Script.Serialization;
 
Share this answer
 

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