Dynamically create a 3 different tables in one page layout - c#

I have to show 3 different tables in one page layout. User can edit the table and some business functionalities involved. I can develop one table in jquery and bind it in front end its working.
Question[edited] I have a got an idea to create object in Typescript and maintain different instances for each table data. Hope it should work. Let me implement it.
Thanks.

Related

Multiple home page for different clients

We have different clients asking for home page with different design layout so what is an efficient way to have multiple pages with different styles, layout for the same data coming from the database in a mvc project?
You could have different css and change the design according to the user that has logged in. If the different design includes placement of elements in different places, then you could use a grid system and store in JSON (preferably) the schema of the page. Then, on each login you should load the JSON and place the elements accordingly. Hope that gave you a small hint!

Single page using a database MVC

I need to create a single page site in ASP.NET MVC (or CORE) for a project to school which will consist of 3 parts 1. A summary of statistics based on data from the database 2. A detailed table containing the entire extract of users from the database 3. Ability to add usera for the database from a manual form and adding a user from the csv file.
I would like to ask if creating 3 components for each of the necessary parts and displaying them in the common view is a good idea? Or Is it better to create one viewmodel that will contain a list of all the data that I will need to use? Or do you have any tips and suggestions for the implementation of this project?
As for the database, it will be the usual SQL database created in the code-first approach. To connect to the database and operations performed on it, I would like to use the interface that will serve as the data access layer.
For all the suggestions, thank you very much. I present the example concept of the page below
My standard approach is to 'silo' logic and views by object/type. In this way, your controllers and views are simplified and specialized (they only need to know how to interact with one type of object). This approach also lends itself really well to code and view reuse within your web app.
So in your example design, I might be looking at...
Controllers:
HomeController
Method to serve up the main view that will contain your 4 distinct sections
StatisticController (what type of statistics? People?)
Method to serve up partial view containing statistics
PersonController
Method to serve up partial view containing full list of Person objects
Method to serve up partial view containing single-Person upload form
Method to serve up partial view containing csv Person file upload
Method to accept POST'ed single-Person upload
Method to accept POST'ed CSV Person file upload
Views:
(Home)
Main view that contains empty layout for the 4 distinct sections, each of which will ultimately be populated from a partial view with, perhaps, Html.RenderAction())
(Statistic)
StatisticPartial view that contains the stats
(Person)
PersonIndexPartial view that contains the full list of Person objects
PersonEditPartial view that contains the single-Person upload form
PersonEditBatchPartial view that contains the csv Person file upload form
That's a bit to take in. I suggest starting with the main form, and getting the general layout set up the way you want it. Then start plugging partial views into each of the 4 distinct sections, one at a time. The more you progress, the more things will start to click.

How working with fields out from DetailsView

I'm newbie in ASP.Net C#.
I made a site on Classic ASP, but I need to recreate on .NET. I am using DetailsView on detail page.
I need to move some fields to another place on mi page. Example: usually put the name on page top, email place is on top too but right side inside a DIV formatted with bootstrap.
I don't know how separate fields that are grouped on DetailsViews's table.
All information on MS site talks about DetailsView, this stuff it's cool but I want more flexibility for placing fields anywhere. DetailsView's table makes me feel tied.
Can you add the section of your code your trying to change? May be easier to understand your question.

How to have flexible Data Entry form of 150 columns in ASP.NET ? Perhaps DevExpress or other thirdparty Tools?

I am encountering a situation such as, I want to offer a data entry form of almost more than 100 fields of certain Database Table. It was an old database of Invoice of a particular company and cannot be altered.
So, I would have obviously a resultant Data Grid ( Probably HTML Table ) or MVC Grid containing user entered data inside. But the problem is How to Offer 120 fields in an entry form? ( Could be a partial View contained inside JQuery )? This comes an idea about inline editable Grid. Would that be better? Or DevExpress offers such controls? Would Spreadsheet be helpfull?
or any other technique would be helpfull to adopt for this?
Any body having any idea?
Regards
Usman
OK. I don't think a Grid would be a good way: that would just be too wide. I think the best way would be a series of Tabs each of which contains the data pertaining to one logical section of the invoice (e.g. a section for Forwarder, another for Client, etc etc).
As a design note, try to group items into sections small enough that the user doesn't need to scroll. Everything is a section should be visible of a normal sized screen. This makes it easier for the user.
Not sure if this is possible in your case but since you mentioned
any other technique would be helpfull
This is what I can suggest: In Visual Studio (download free copy here http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx), in your MVC project:
Add Entity Framework package from nuget if you don't already have it (Install-Package EntityFramework from Package Manager console in VS)
Add an EF model in VS by dragging you database table to model designer
Add an Entity Framework controller with Read/Write Actions
This will create views in your project where a user can go an CRUD the table rows. And will also ensure basic constraint checking.
Check this tutorial for Entity Framework details: http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application

Need to create a visual hierarchy graphs in C#

I need to create an application read from the database & create a hierarchy graphs in my form, So I can access them from the form & change some properties or change the relation between the objects Like "Family Tree or Organization Structure" in C# & SQL Server...... if if any one know a 3rd party component to do that Please till me.
Holy cow! There are multiple ways to do this, but I'm not going to do your homework for you. Here's how I'd start:
You'll need to figure out the hierarchical relationships in the database.
Figure out how to pass that data to the view (html or whatever the platform).
Then you'll need to write CSS that reflects the hierarchy.
If you can give the data and more info I can help further.

Categories

Resources