C# .NET - how to store data in tab

Asked By imran khan
03-Nov-09 01:24 PM

Dear All,
 i am using asp.net2.0 , C#
 i have a form with different Tab. i need to keep in memory(not in database) data of every tab when user go to other Tab. and display same data when he comes back to same tab
i did it made properties of every tab and then saved it in class in session..
i want to know it there other perfomance driven techniques available

Plea guide

data between tabs  data between tabs

03-Nov-09 10:30 PM

you can use sessions if you don't have to store heavy objects like datasets with more data / datatables with more data.

You can use caching techniques if you want to improve the performance a little bit.

As alternate Check this link how you can split data and access between tabs:

http://blogs.techrepublic.com.com/programming-and-development/?p=493

Thanks,

 

Create New Account
help
How can we know a state of a thread? (A) What is use of Interlocked class ? (A) What is a monitor object? (A) What are wait handles? (A) What is ManualResetEvent and Webservices (B)What is an application domain? (B) What is .NET Remoting? (B) Which class does the remote object has to inherit? (I) what are two different types of remote Cache substitution? Chapter 6: OOPS (B) What is Object Oriented Programming? (B) What is a Class? (B) What is an Object? (A) What is the relation between Classes and Objects? (B Overriding? (I) what is the difference between delegate and events? (B) If we inherit a class do the private variables also get inherited? (B) What is the different accessibility levels defined in .NET? (I) Can you prevent a class from overriding? (I) what is the use of “Must inherit” keyword in VB.NET? (I Do interface have accessibility modifier. (A) What are similarities between Class and structure? (A) What is the difference between Class and structure’s? (B) What does virtual keyword mean? (B) What are shared (VB.NET I)How can we force all the validation control to run? (B)How can we check if all the validation control are valid and proper? (A) If client side validation is
net ADO is designed primarily for connected access ADO.net the disconnected access to the database is used In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to or the APIs provided by the underlying data source. In ADO you cant update the database from the recordset. ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database. On order to get assembly info which namespace we should import? System.Reflection Namespace How cannot be used with indexers, destructors, or types. In C#, the static keyword indicates a class variable. In VB, the equivalent keyword is Shared. Its scoped to the class in which it occurs. Example a. Static int var / / in c#.net b. static void DataSource = ds1.Tables[”employee”].DefaultView; dg1.DataBind(); Answer2 OleDbConnection1.Open() OleDbDataAdapter1.Fill(DataSet21, 5, 15, “tab”) This will fill the dataset with the records starting at 5 to 15 .NET Database
we have already learned. We walk through creating a report from the Reporting Services sample database to provide a framework for sharing what has been learned. We make liberal use of host the production web sites for applications. The Report View pages use the Report.vb class to interact with the Reporting Services web service. Either HTML or PDF can be rendered depending on web.config settings. The Report.vb class encapsulates the interaction between the report Viewer ASPX pages and Reporting Services. The class is application independent. IIS, Reporting Services and Database Server: This machine hosts SQL Reporting Services and SQL Server 2000. The Reporting Services web provider; although in our View Pages the web service provider is a "web.config" setting. Database Server: This machine hosts the SQL Server 2000 databases required to persist application information. Reports and print reports as part of the development cycle. Unfortunately, the preview tool is a bit more precise than either HTML or PDF rendering. Tech Tip: Make sure the Report Project to pass along your authentication on the "2 nd hop" to either the RS support database server or to your data sources on yet other instances of SQL Server 2000. We
to get PerformancePoint up and running, from beginning to end. This post may get a bit lengthy, so skip over the parts that you already know or, for whatever reason, don server? Most farm topologies include at least 2-3 WFEs, an app server, and a database server, as represented in the diagram below: Topology_thumb_4EF19788 Typical Farm Topology To deploy PPS in for running PerformancePoint. Server Recommendations (WFE or Application Server) Hardware Software • Two, Dual-Core 64-bit CPUs (x64) • 4 GB RAM • 5 GB Available Disk Space • 7200 RPM IDE Drive • 1000MB Network Interface • Windows Server 2008 64-bit • Windows Server 2008 R2 64-bit (Win 7 server Database Recommendations Hardware Software • 2 Quad Core 64-bit CPU • 2.5GHz, 6MB Cache, 1066MHz FSB • 10K RPM Serial-Attach SCSI HDD • 8 GB RAM • 1000MB Network Interface • Windows Server 2008 or Windows Server 2008 R2 64-bit (Win 7 server) • SQL Server 2008 (64-bit only) • SQL Server 2005 (64-bit only
model in order to interact with SharePoint lists, but to pull data from our LOB database it’s standard data access stuff. So from the Data tab in the toolbox, I’m going to drag a GridView onto the form. I’m System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports LowInventoryWebPart.NorthwindService Partial Public Class LowInventoryWebPartUserControl Inherits UserControl Protected Sub Page_Load( ByVal sender As Object , ByVal e As EventArgs ) Handles DataBind() Catch ex As Exception Me .Label1.Text = ex.ToString End Try End Sub End Class Debugging the Web Part Let’s test this so far. Set the LowInventoryWebPart project as beginning. So select Site Actions in the upper left, then Edit Page. Select the Insert tab on the Ribbon and click Web Part. Select the Custom category and you should see open the properties. Set the Title to “Low Inventory” and click OK. On the Page tab on the Ribbon select Save to save and close the page editor. Now we’ve hit enter under the GridView and and type “Create Task:” under it. From the Standard tab on the toolbox, drag a Textbox onto the form then drag a Button and set Select …” button. • Uncheck all options, checking ONLY “Managed (v2.0, v1.1, v1.0) code”. • Check the “Show processes in all sessions” checkbox. • Select all “w3wp.exe” Processes, then click on