We help IT Professionals succeed at work.
Get Started

How to save the DataTable for furhter access with .Net generics

KavyaVS asked
Last Modified: 2012-09-14
Instead of accesing the database multiple times,I am storing the DataTable in ViewState.
DataTable dtSql = (DataTable) ViewState["tblxmlcol"];

On web page left menu links,when the link is clicked I am getting DataTable back from ViewState and accessing the Xml contents column and decoding it to Html.

It is slowing down the process.Is there any way  can I make it faster.
Instead of storing the DataTable in ViewState and converting it to DataTable again can you suggest something using.Net generics or something else.

Watch Question
This problem has been solved!
Unlock 4 Answers and 10 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE