ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How to implement caching?
 Question Submitted By :: Geethu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to implement caching?
Answer
# 1
Data caching:

        DataView Source;
//Declare variable for caching
        Source = (DataView)Cache["MyDataset"];
        if (Source == null)
        {
            OleDbConnection objcon = new OleDbConnection
(ConfigurationManager.ConnectionStrings
["strcon"].ConnectionString);
            OleDbDataAdapter objcmd = new OleDbDataAdapter
("select * from Customer", objcon);
            DataSet objds = new DataSet();
            objcmd.Fill(objds, "Customer");
            Source = new DataView(objds.Tables["Customer"]);
            Cache["MyDataset"] = Source;
            Label1.Text = "Dataset created explicitly";


        }
        else
        {
            Label1.Text = "Dataset retrived from Cache";
        }
        GridView1.DataSource = Source;
        GridView1.DataBind();
        gridbind();
 
Is This Answer Correct ?    0 Yes 0 No
Sivasaravanan
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
what is structured data format?  2
Breifly explain about stack and heap memory Managemet?  1
what is DLL Hell and how it is solved in .NET? icegen9
Contrast the use of an abstract base class against an interface? iLink4
Can u able to get the xml document in crystal report if yes how its possible  1
What is session tracking & methods? C-Squared-Systems3
What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?  2
Your ASP.NET application displays sales data on a page. You want to improve performance by holding the page in memory on the server for one hour. You want to ensure that the page is flushed from memory after one hour, and that the page is re-created when the next request for the page is received. What should you do? A . Initialize a new instance of the Cache class in the Application.Start event handler. B . Initialize a new instance of the Timer class in the Page.Load event handler. C . Set the Duration attribute of the OutputCache directive in the page. D . In the Web.config file, set the timeout attribute of the sessionState element. Syntax-Softtech5
Which institute provide good Project training on .Net technologies in hyd?  4
What property is used on the datatable to indicate a conflict after an update? a) HasConflict b) HasError c) HasCollision d) HasDataError Syntax-Softtech1
Explain current thinking around IClonable.  1
Way of updating a table other than stored procedure and hard coded query?  2
If there are two web.config files in a application which config files will get priority?  4
How do you make your site SSL enabled ? Satyam2
which method marks a config file section for encryption?  1
Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code. Lambent1
Explain how server control validation controls works? Syntax-Softtech2
What are the different methods that are used during the page load?  1
if i have 1000 records and i want to access 20 ata time from SQL server, what will be the query? Mind-Tree5
What is the difference between a session object and cache object CitiGroup2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com