spreadsheet like asp.net and dynamic view - asp.net

I want to create an application that users can select fields from database table and create a spreadsheet by those data. Is any control or sample to implement it?

Getting the schema of table varies from database to database.
No matter which database you use, it would be easy to get the list of columns and let the user select which columns to show.
To create a speardsheet you should look at these controls ASP.NET Real World Controls
These custom controls enable you to create excel like grids in asp.net. It is open source allowing you to extend them as may be needed by your project.

Related

Interactive search results table

In Asp.net using Visual Basic code I want to be able to query a database after a user inputs search criteria, get the results and display them in a table, with the ability of the user to click/select individual results and delete the corresponding data from the database. How can I do this?
You can do this by utilizing a Datagridview and binding data to it (by using OLEDB for example). Use the WHERE clause in your query to filter the records, based on the user input. (http://www.w3schools.com/sql/sql_where.asp)
The Datagrid has events you can use (delete, select, insert and update event).
See for more information: https://code.msdn.microsoft.com/VBASPNETGridView-19039173
Good luck!

Placing data from sql table to userform and make some field to readonly and allow edit to remaining in asp.net

I am a beginner in asp.net .now I am creating a website in Asp.net .And I would like to place a set of data from sql table to user form. And I want to make some data as read only in user form and user can edit remaining data .then a button click will cause to update the edited data in the same table.
i found many article for querying data from sql and updating the data.my problem is to place the data in the form and make the some data like "employee-id " as read only to user.and allow remaining data to edit.
any idea or solution will be so helpful.

How to create Dynamic table in ms sql?

I have a Membership form in asp.net Which contains custom fields.so by that custom Field User can generate more than one field dynamically
for Example (User can add Mobile number column in their membership form (they can add what ever they need)).So i cant able to maintain static table for Membership control in ms sql.
Is there any way to create dynamic table in ms sql for Dynamic Membership form.(whenever user adding column dynamcally i should get those column in ms sql dynamic table)
please help me to solve my problem

Generate ASP.NET UserControl from Database

Is there any existing software for generating a UserControl from a table of a database?
For example, my table contain 3 fields : name , last name , age.
The software generates a user control that has 3 labels and textboxes with validation and submit button and a gridview for displaying information , etc...
Thanks all.
You might want to look into Dynamic Data. It's an ASP.NET framework developed by Microsoft that automatically generates common UI elements based on Linq to SQL or Entity Framework objects (which are trivially easy to generate from a simple table like the one you mention.)
What you describe sounds an awful lot like UI "scaffolding". Take a look at the following article and related question:
ASP.NET Scaffolding/Templating CRUD Solutions
Dynamic Data
Here's one more O/R mapper capable of scaffolding (generating UI from database):
http://www.subsonicproject.com/

Is there an existing DataSource that takes its data from DataTable in ASP.NET?

I'm making an ASP.NET Web Forms application. I would like to get a DataSource which takes its data from a DataTable, and this table is persisted among requests (preferably in session, not ViewState).
The idea is that there is a need for some fairly complex forms where there are several gridviews in each of them. All the gridviews have to have edit functionality (we're using DevExpress), but there has to be one giant "SAVE" button on the form, which saves everything.
So it would be nice if I could get some kind of a DataSource that I could bind these GridViews against and which would only store the data in memory. When the user clicks the Save button I would then manually query these DataSources and extract the changed data from them.
Is there something existing for this, or must I write my own (seems to be a pretty large task)?
The scenario you have described;
Retrieve data from datasource and
store in datatable
Store datatable
in session-state.
Modify datatable
from different grids
Sounds like it will work, issues that i can see you having is that you'll have to reload the data between grids when the data changes. You'll have to write a class that'll raise events when changes are made to the datatable (which you'll probably also want to include in the class, and just store the class object in session state).
I hope the datatable isn't too too big... as this isn't the sort of approach i'd take for a web app.

Resources