Register  |  Login



Question

Status: Open Points: 125 Time: 02:33 - Sep 04, 2007  

edwinlazer

if i enter 3 in a text box i have to display a subform with 3 rows of textboxes for name,age etc.

no of accompanies:3
when textbox postback the subform shold contain 3 rows of text boxes for name,age etc.
ie

Header--> name  age
row1. textbox textbox
row2. textbox textbox
row3. textbox textbox

Categories:

Answer Discussion
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

PeterNZ

Date:: Sep 04, 2007

Time:: 22:35

I assume you use ASP.NET. Why don't you build your subform dynamically in code and then have a loop and add three text boxes?

Cheers

Peter

PeterNZ

Date:: Sep 04, 2007

Time:: 22:37

Sorry here is a sample:
int i = 1
While (i <= Int32.Parse(txtAccompanies.Text))
{
page.Controls.Add(new TextBox());
}

Cheers

Peter

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Summaries cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

6232

2.

rcastagna

4146

3.

LAGM

3650

4.

PeterNZ

2807

5.

oracleofDelphi

2698

6.

jgivoni

1953

7.

xarcus

1820

8.

gonzalo

1000

9.

Anpanman

812

10.

theDude

695

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es