so I've got question:
is it possible in ASP to click on button or to click on LinkButton and when button is clicked on other page program build TextBox (before clicking button TextBox on other page doesent exist),and when user clicks the button 10 times, ten TextBoxes will be shown, if it is possible, how?
For creating button on other page I used this code (code is in VB.Net but I'll prefer answer in C# if it is possible):
Expand|Select|Wrap|Line Numbers
- Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
- Session("text") = True
- Response.Redirect("Deafult2.aspx")
- End Sub
- Page2:
- Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- If Session("text") = True Then
- Dim text As New TextBox
- Panel1.Controls.Add(text)
- End If
- End Sub
I hope I've explained my problem well.
Many thanks.