Home > DeveloperSection > Forums > Assign dataview value to view state
Mark Devid
Mark Devid

Total Post:101

Points:707
Posted on    January-29-2013 2:20 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 2344  View(s)
Rate this:

Hi Everyone!

 

Can anyone tell me how to assign dataview value to view state in ASP.NET C#?

Thanks



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    January-29-2013 9:15 AM

Hi Mark Devid!

You can try this line of code

datatable dt=new datatable();
DataView dv = new DataView(dt);
dv.RowFilter = Condition;
 
ViewState[ViewStateName] = dv;


Don't want to miss updates? Please click the below button!

Follow MindStick