Creating a text box at run time
source link: https://www.codesd.com/item/creating-a-text-box-at-run-time.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Creating a text box at run time
how to create as many textbox at runtime on button click. And also what will be the id's of textboxes created at runtime and send the value of textbox to next page through session
please someone help me. I've stucked at this point for many days but could not solve it.
thanks
prasanna
To create a textbox at runtime you set it up in your Page_Init like this:
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
' Create dynamic controls here.
TextBox1 = New TextBox()
TextBox1.ID = "TextBox1"
TextBox1.Style("Position") = "Absolute"
TextBox1.Style("Top") = "25px"
TextBox1.Style("Left") = "100px"
Form1.Controls.Add(TextBox1)
TextBox2 = New TextBox()
TextBox2.ID = "TextBox2"
TextBox2.Style("Position") = "Absolute"
TextBox2.Style("Top") = "60px"
TextBox2.Style("Left") = "100px"
Form1.Controls.Add(TextBox2)
End Sub
Related Articles
How to create a text box at run time and take values from this text box? in C #. Net
Change the border style of the text box at run time
The date selected in the calendar control does not change in the text box at run time
Divide the contents of the text box into the respective individual text boxes at run time in c #?
can we change the size of the text box at run time
create a text box in the .docx document by using apache poi
How to create a text box in HTML?
How do I create a text box on the click function
how to send value to servlet from javascript (dynamically creates a text box)
Create a table Dynamically (at run time)
Create a text box with predefined data
C ++ How to use an onClick event to create a text box?
How do I change the text of the selected item in the list box at run time?
Creating a dynamic check box at run time - getting an 'undefined' error in angularjs
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK