show-notice
hide-notice

Wednesday, 21 August 2013

add textbox control from code behind in asp.net


Introduction:

Here i will explain add textbox control from code behind.

Description:

Most of user are directly drag and drop control from toolbox, but here i will explain control add in web page from code behind.

Inside the form you could put a placeholder at the location you want this textbox to appear:

ASPX:


CS:
TextBox txt = new TextBox(); 
txt.Width = 100; 
txt.Height = 100;
holder.Controls.Add(txt);

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com