Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
Iam having Two drop downs for both the values will be loaded from the database, I need to have an local copy of the tables initially when my page is loading I will load from database, and after if any Dropdown selected event occurs it should search and filter within the local copy of table it should not go to the Database.and is it possible write Stored Procedure to manipulate within the local copy
I doesnt require any coding pls say whats the concept name of retrieving and manipulating within the copied table, if this is possible is it possible to load and keep an local copy of 5 or 6 Table.
Posted
Comments
ZurdoDev 27-Mar-13 7:22am    
No, you need to use something like Google gears, if it is still around. A stored procedure on your SQL server cannot access information on the client machine. The web is disconnected. I think you need to rethink what you are trying to do.

Quote:
You can go for LINQ and entity framework(EDML Files) in .net
where you can load the tables and run queries on the retrieved table using linq queries
 
Share this answer
 
You can use DataView for that.

First declare a Global DataTable. then store your all database value to that datatable.
Second declare a Global DataView.

Eg:-

C#
static DataTable dtTable;
static DataView dvTable;


On Page Load save your all database value to DataTable.

Now perform your search option in that DataTable.
Eg:-

C#
dvTable = new DataView(dtTable); //pass your datatable object in dataview.
dvTable.RowFilter = "your filter query"; //use RowFilter property to filter your value
//then bind this dataview to your control
dropdown.DataSource = dvTable.ToTable();
dropdown.DataTextField = "your text field";
dropdown.DataValueField = "your value field";
dropdown.DataBind();


Hope you got it.

Happy Holi.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900