Click here to Skip to main content
15,041,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a text box.It is having 2 validation on it(Range validator and req field validator).
Now,if I enter an integer within 0-8,just after gettting out of focus of the text box,I need to generate a grid which should contain exactly that many number of rows.
Now,My question is:
1.How to capture that number entered in the text box and without any button click event,how to to generate the grid?I suppose,I need to write the code in one of the TextBox event.But,which one and how?
Please help me as I am in urgent need.

1 solution

protected void TextBox1_TextChanged(object sender, EventArgs e)
      // capture number enterd in text box
       string Num = TextBox1.Text;

     // code to generate the grid

avishekrc 14-Oct-10 6:40am
I have tried TextChanged() event,but it will only raise after somepostback,right?But here there is no button click event in between.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900