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.
Related
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.
I have a form in ASP.Net Visual Studio that asks for particular details. After the user inputs their details into the database, I then want to be able to view their records and edit it in a different webform.
How can I view that one selected row of records in my form instead of viewing the entire database table?
I thought of using DetailView, however it still shows all the records in the database (just only one at a time).
Then I thought of using sessions but I don't know how about doing this?
Could I possible create a text box to input the persons username (primary key) and then that will open their details?
Update: What I don't want is the DetailView to have other details viewed as well. Meaning I don't want the records of other people on the DetailView as well. I just want the one record of that person, no one else's.
After saving to db, redirect to a new page posting the primary key data using suitable session management techniques & load the details with detailsview
Hi good people at StackOverFlow,
This morning I have found myself having a few issues with getting the correct results when attempting to view reports in my C# application using Crystal Reporting.
I'm attempting to build reports based on a user's entry when selecting an 'Employee Number' from a drop-down list within my application, so far Iv'e got the drop-down list populated with the database column records but I just cannot find a way to build a report when users select an option.
Please could someone give me an insight on how this is done or even direct me into the right place to learn how to perform such an action, I'm here to learn and would rather find my way around this issue as a means to gain knowledge rather than just simply asking for a user to fix my problem...
Thanks people!
Create your report in design with your whole table to be displayed. Then you can either create a parameter in crystal reports to filter the value by your selected value from combo box or you can set your query while loading the report with the Filtered query.
eg:
string query = String.Concat("Select * from wharever where something like ",yourcombobox.text);
Then set this query as the query to produce the report.
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
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).