Click here to Skip to main content
15,886,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhtml contents into plain text Pin
MalarGayu19-Dec-11 9:36
MalarGayu19-Dec-11 9:36 
AnswerRe: html contents into plain text Pin
Jain Vijay19-Dec-11 17:37
Jain Vijay19-Dec-11 17:37 
GeneralRe: html contents into plain text Pin
MalarGayu19-Dec-11 17:57
MalarGayu19-Dec-11 17:57 
QuestionData display with dynamic coloum Pin
yesu prakash18-Dec-11 23:17
yesu prakash18-Dec-11 23:17 
QuestionInsert Multiple Records by one click Pin
sk_ko18-Dec-11 20:09
sk_ko18-Dec-11 20:09 
AnswerRe: Insert Multiple Records by one click Pin
kaisernayan21-Dec-11 0:06
kaisernayan21-Dec-11 0:06 
AnswerRe: Insert Multiple Records by one click Pin
rkrishnach21-Dec-11 0:15
rkrishnach21-Dec-11 0:15 
QuestionSorting numbers then adding to a database Pin
Chris_B8417-Dec-11 9:50
Chris_B8417-Dec-11 9:50 
Hi, I have applied for an entry-level job. I've been sent the following email and I have to program it before I can get an interview. I graduated in 2007 and have forgotten a lot, so have been teaching myself programming languages again recently.

Candidates are required to build an ASP.NET application, using C#.Net for code behind and targeting version 3.5 of the framework. The application will require a SQL server database for storage of data generated by the application. This application must perform the following tasks:

1. Allow the user to enter numbers, of any integer value and in random order. Sort these numbers in either ascending or descending order – the order should be chosen by the user.
2. The ordered sequence should be inserted into a database record along with the direction that the sequence was sorted in and the time taken to perform the sort.
3. Standard .Net controls should be used to bind to the newly inserted record and display the results of the ordering.
4. Again using standard .Net controls the results of all sorts should be available for display in either ascending or descending order of time taken and exportable as XML.
5. Use the design template provided to style your application.
6. Please document all assumptions and decisions taken separately and submit with final code base.


-------------------------

For 1: I have 6 text boxes the user will type numbers in to and a drop down list for them to select ascending or descending. When they click a button, all the numbers go into an array, it is sorted in the required order, and then the numbers will be output into the text boxes in the correct order - is this how you would do this?

I think I know how to add it to the database. The one part I'm stumped on is in part 2: How do I get the time taken to perform the sort? Do I use a Timer control? If so, how many decimal places would you use? 3 or 4? Or much more?

Thanks in advance for any help Smile | :)

modified 17-Dec-11 16:09pm.

AnswerRe: Sorting numbers then adding to a database Pin
jkirkerx17-Dec-11 21:02
professionaljkirkerx17-Dec-11 21:02 
GeneralRe: Sorting numbers then adding to a database Pin
Chris_B8418-Dec-11 1:25
Chris_B8418-Dec-11 1:25 
GeneralRe: Sorting numbers then adding to a database Pin
Richard MacCutchan18-Dec-11 4:39
mveRichard MacCutchan18-Dec-11 4:39 
GeneralRe: Sorting numbers then adding to a database Pin
Chris_B8418-Dec-11 5:23
Chris_B8418-Dec-11 5:23 
AnswerRe: Sorting numbers then adding to a database Pin
Not Active18-Dec-11 9:03
mentorNot Active18-Dec-11 9:03 
Questionrelated news function? Pin
duongvannam16-Dec-11 17:39
duongvannam16-Dec-11 17:39 
AnswerRe: related news function? Pin
Not Active17-Dec-11 3:54
mentorNot Active17-Dec-11 3:54 
QuestionComparing array of strings Pin
indian14316-Dec-11 6:23
indian14316-Dec-11 6:23 
AnswerRe: Comparing array of strings Pin
Morgs Morgan17-Dec-11 8:57
Morgs Morgan17-Dec-11 8:57 
GeneralRe: Comparing array of strings Pin
indian14318-Dec-11 14:03
indian14318-Dec-11 14:03 
GeneralRe: Comparing array of strings Pin
Morgs Morgan18-Dec-11 19:06
Morgs Morgan18-Dec-11 19:06 
GeneralRe: Comparing array of strings Pin
indian14318-Dec-11 21:03
indian14318-Dec-11 21:03 
Questionhow to show a pupup on my parant window. Pin
Jitendra Parida - Jeetu16-Dec-11 1:59
Jitendra Parida - Jeetu16-Dec-11 1:59 
AnswerRe: how to show a pupup on my parant window. Pin
Dennis E White16-Dec-11 5:30
professionalDennis E White16-Dec-11 5:30 
GeneralRe: how to show a pupup on my parant window. Pin
Jitendra Parida - Jeetu17-Dec-11 1:06
Jitendra Parida - Jeetu17-Dec-11 1:06 
GeneralRe: how to show a pupup on my parant window. Pin
Dennis E White17-Dec-11 5:42
professionalDennis E White17-Dec-11 5:42 
GeneralRe: how to show a pupup on my parant window. Pin
Jitendra Parida - Jeetu18-Dec-11 18:39
Jitendra Parida - Jeetu18-Dec-11 18:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.