PsychoCoder
Programmer
In my application I have a page where I need to add textboxes if the user clicks a linkbutton, below is the sub I have written to add the textboxes:
When I click the linkbutton nothing shows (though the area increases in size as it would if new items were there. If I right click and view the source I can see the text for the new items yet they dont show in the page. Anyone have any ideas?
Senior Qik III,.Net,SQL Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code Gremlins Must Go Down Hard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code:
Protected Sub net_add_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles net_add.Click
Dim new_item As New Literal
new_item.Text = "<tr>" & vbCrLf
new_item.Text &= "<td style=""WIDTH: 145px; HEIGHT: 61px"" valign=""top"">" & vbCrLf
new_item.Text &= "<ASP:TEXTBOX ID=""object_2"" RUNAT=""server"" WIDTH=""145px"" />" & vbCrLf
new_item.Text &= "</td>"
new_item.Text &= "<td style=""WIDTH: 506px; HEIGHT: 61px"">" & vbCrLf
new_item.Text &= "<ASP:TEXTBOX ID=""changes_2"" RUNAT=""server"" WIDTH=""459px"" HEIGHT=""53px"" TEXTMODE=""MultiLine""/>" & vbCrLf
new_item.Text &= "</td>" & vbCrLf
new_item.Text &= "</tr>"
Me.net_xtras.Controls.Add(new_item)
End Sub
When I click the linkbutton nothing shows (though the area increases in size as it would if new items were there. If I right click and view the source I can see the text for the new items yet they dont show in the page. Anyone have any ideas?
Senior Qik III,.Net,SQL Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code Gremlins Must Go Down Hard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~