View Single Post
Join Date: Sep 2007
Posts: 10
Reputation: vimalfor5 is an unknown quantity at this point 
Solved Threads: 1
vimalfor5 vimalfor5 is offline Offline
Newbie Poster

Dynamic Server Control event handling

 
0
  #1
Nov 24th, 2008
Hi All,

Please help me to complete the following type of event handling in asp.net with C#

  1. private TableCell CreateTextCell(string name,string id)
  2. {
  3. TableCell cell = new TableCell();
  4. TextBox txt = new TextBox();
  5. txt.ID = id;
  6. txt.AutoPostBack = true;
  7. txt.Text = name;
  8. txt.TextChanged += new System.EventHandler(this.txt_Changed);
  9. cell.Controls.add(txt);
  10. return cell;
  11. }

My Problem is the TextChanged event is not calling or it is not properly handling.. the autopostback is working fine.. but the event handler not..
and one thing I'm using .net 1.1 version in VS2003

Please give me a suggestion

Vimal
Last edited by vimalfor5; Nov 24th, 2008 at 12:11 pm. Reason: mistake correction
Reply With Quote