create grid like excel in asp.net MVC5 - c#

I am a beginner in Asp.net and I am confronted with a problem in the development of my site.
At this stage my database contains information entered by the user:
The different cities whee sales were made
The name of the sellers by cities
The number of sale per article for each seller
Traditionally my company uses excel to create a table that contains sellers organized by city and their sales by article. Below and the left row of the table are calculated column (the totals by articles, by cities/sellers).
I am asked to reproduce this table on my website so that it can generate it automatically.
I searched a little on google and tested a few tricks but nothing answered what I desire to do exactly. i managed to add grids with GridMVC and jquery.database.
If someone has had to do a kind of stuff or can help me in any way for this, it will be perfect.
Thanks for all help.

If you want to include grid in your website then you can use Jquery datatable. For export purpose you can use tools such as Rotativa or iTextsharp.

Related

Accessing Google Sheet data with ASP.NET Project

In our company, there is a Google form for collecting Feedback from customers and it's linked to a Google Sheet.
So I want to get those data and show the summary in my ASP.NET MVC project.
I want to know is this possible to do? Do I need to pay an additional amount to get access to those data (like API)?
If there is a way of doing this FOC please tell me how.
Thanks.

How to make Product List in ASP.net C#

how to display Product list in ASP.net C#? i'm creating e-commerce website for my thesis i need to display it in a grid form like this >> sample product list with limitation per page example 10 products per page please i need your help
I would use a DataList control. Here you can find a good tutorial
There are different ways to do that. There's no one right or correct solution. It all depends where you're comfortable workin' with.
Can you please show us what you've already done?
Now with regards to the filtering, you may use a combination of GridView + DropDownList (where DDL will be used to filter the result). You can look for some great tutorials online.
I hope it helps you.

Showing Database Content in a Certain View on a Web Page

Ok so here is what am thinking. Am making a recruitment website to hire people. It gives a functionality to the applicant that he can build his cv online! i have made various forms for that.
After filling the forms the applicant will submit the information to database and then am saving all of the information from the webpages related to building cv in the database!
Am thinking of providing the applicant a tab on which when he clicks "View CV" and i show him the cv he built on a new web page in the format like this
http://careers.telenor.com.pk/Page/Detail/VacancyView.aspx?PositionID=3003265
Like the fields should be on the left as table columns and their respective content in the database on the right! Can anybody completely guide me how i can do that ?? or direct me to a specific tutorial ?? i would be grateful! Am using Asp.net!
I have seen grid view! Much like a table it is! with columns on the top and below the values in the database! That is not the thing i want!
DetailsView control can be used to display fields from a single data record. It has that "format" you are looking for.
You can find documentation in this link http://msdn.microsoft.com/en-us/library/s3w1w7t4.aspx

Display Table Data to the user in Visual Studio 2010

Because nobody answered to my previous questions I need to find a different solution.
So, if you can please help me I would appreciate it very much.
I need to present to the user that use the app some table data by his name and id.
In other words I have a table data about flights reservations that the user performed earlier.
that table contains flight reservations of all the users.
now I want that in case the user entered his user name and id I will show him all the data from the table that the columns userName and idNumber equals to his personal details.
How can I do this?
Where's the data coming from? If you're using a database, then databinding is going to be the simplest method of doing this. There are a ton of examples of databinding to a SQL database around the web. Here's one.
For showing only the selected user's data, you would add filters to the query appropriately. You can also search Google for ASP.net data binding and get a lot of examples.

I need to dynamically generate questionnaires in aspnet 3.5 using sqlserver 2005 data

I have been given an assignment that requires dynamically creating many web data entry pages mostly in questionnaire form.
I am using visual studio 2008, aspnet , c#3.5 and sqlserver 2005.
The questions are hierarchical and are stored in sqlserver with hierarchy info and info on which questionnaire(s) they belong to.
Some questions require answers via radio button y/n/na and some require an int as input.
I was thinking of using listview or gridviews (bound to the database with a sqldatasource that filters the questions for the questionnaire being generated) for the data entry.
One listview or gidview would contain the question and a column of radio buttons. I would have to loop thru it row by row to save the data in the db.
The other listview or gidview would have a column bound to a integer column in the db. An inline edit would update the db automatically.
Is there a tool that does this? Preferably with a gui that the enduser can use to enter, edit and change the order and hierarchy of the questions?
Open source is best, but a reasonably priced tool is ok also.
Any other suggestions are also appreciated.
I am doing something very similar for a sitefinity website. Unfortunately the poll module that comes out of the box with sitefinity does not meet the requirements for a questionnaire.
Found a good post here in SO.
There are some survey engine toolkits in the market.
Here are some:
http://www.mentor-logic.com/index.php/products/components/zodiacnet
http://www.classapps.com/SelectSurveyFeatures.asp
http://www.novisystems.com/
http://www.nsurvey.org/
Open source:
VoteControl
NetPolls - The web poll engine
I might do this purely with XML. Use an XML query to SQL server to retrieve the hierarchical information as XMK, then use XSLT to transform the XML into the correct HTML (or XHTML).

Categories