Run time dynamic controls in asp.net

I don’t understand that most of the developer, why they use stringbuilder to generate run time controls on page whether they know that in this case they can’t get user inserted values by using stringbuilder. So i suggest to all developers that don’t use stringbuilder for this. Please do this by using run time generating controls as per given given by example: On the aspx page use a panel for showing controls in a proper way like this and a button for saving data in <asp:Panel ID=”pnlQuestions” runat=”server” Width=”100%”> </asp:Panel> <asp:LinkButton ID=”lbtnNext” runat=”server” CssClass=”button” ToolTip=”Next” OnClick=”lbtnNext_Click”><span>Save & Next</span></asp:LinkButton>   On … Click here to continue…..

What are the different types of caching?

Caching is a technique widely used in computing to increase performance by keeping frequently accessed or expensive data in memory. In context of web application, caching is used to retain the pages or data across HTTP requests and reuse them without the expense of recreating them. ASP.NET has 3 kinds of caching strategies Output Caching, Fragment Caching, Data Caching. Output Caching: Caches the dynamic output generated by a request. Some times it is useful to cache the output of a website even for a minute, which will result in a better performance. For caching the whole page the page should … Click here to continue…..

Difference between Dataset and Datareader?

Data Set is a connection-less service and Data reader is a connection oriented service. Dataset is used to store the data, it contains collections of Datatable. Datareader is used to connect to the database for retrieving data. Data Reader – Forward only where as Dataset – Can loop through dataset. Data Reader – Connected Recordset where as DataSet – Disconnected Recordset Data Reader – Less Memory Occupying where as DataSet – It occupies more memory Data Reader – Only Single Table can be used where as Dataset – Datatable Concept allows data to be stored in multiple tables. Data Reader … Click here to continue…..