P2Pprogrammer 2 programmer

Home > Programmer2Programmer.NET Forum> ASP.NET, MVC and Web Development >> How to add Textbox ?...

Welcome Guest My Thread | Search | Active Topics | Members | Log In | Register

NOTE : Log In required to post Replies for this discussion.
How to add Textbox ?
SAPANA R Posted: Wednesday 18, June 2008 06:51:20 AM     
   
can anyone tell me hw to add textbox in runtime ?

Back to Top ^  
 Coder Posted: Tuesday 24, June 2008 03:21:23 AM
  
   
Dim T as new TextBox
T.Visible=True
T.Width=100
T.Id="TextBox1"
Me.Controls.Add (T)
Back to Top ^ 
 S.JayaSankar Posted: Sunday 30, January 2011 08:58:05 AM
  
   
<%@ Page Language="C#" Debug="true" %>


In General Declaration:

TextBox[] t;

In Button Click Event:

t=new TextBox[n];
in for loop
{
t[i]=new TextBox();
t[i].location=new point(200,x);
this.controls.add(t[i]);
}


Back to Top ^ 


Home > Programmer2Programmer.NET Forum >ASP.NET, MVC and Web Development >> How to add Textbox ?...