?
Solved

Multiple Name Phone number entry

Posted on 2011-10-31
6
Medium Priority
?
247 Views
Last Modified: 2012-05-12
Hi,

I'm looking for the best approach for this in peoples opinion. I'm using c# .net 3.5. I'm comfortable with JavaScript also.

I need to have a web page that allows multiple entry of a name and telephone number. I need to display 20 rows to the user where each row simply has 1 textbox for Name and another for number. The data entered will be saved to a Database when the user clicks Save at the bottom of the 20 rows.

I'm most concerned with how to display the rows in my aspx page. I really don't want to use static code for 20 rows.

I was thinking about creating a user control with validation and then on my page have a For loop to create a version of this control 20 times. When one of these controls is completed, I have an event that saves the Name and number in session and when the user clicks save, I access the session variable and save to Database.

I could be barking up the wrong tree so I'm open to all suggestions.

0
Comment
Question by:Eamon
  • 4
  • 2
6 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 37060214
Try using a ASP:Repeater control.  This will create a table with as mwany rows as necessary to display the Bound Data.

AW
0
 
LVL 1

Author Comment

by:Eamon
ID: 37062024
@Arthur_Wood - I wont be dealing with displaying bound data. I will have a new page where the user will enter new names and phone numbers.

It will be very similar to the screen shot attached.
MultipleNameEntry.PNG
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 37062112
ok, I misunderstood what you were asking.

AW
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
LVL 1

Author Comment

by:Eamon
ID: 37068715
I did a quick mock up using a user control. Works okay. I think it might be a bit of overkill.

Anyone any ideas?
0
 
LVL 1

Accepted Solution

by:
Eamon earned 0 total points
ID: 37106274
Maybe the user control is a good option.

Any ideas from anyone else?
0
 
LVL 1

Author Closing Comment

by:Eamon
ID: 37175711
No solution provided so I'm going to go with the user control option.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question