theresatan
Programmer
Hi, all
Does a page can do this?
When user's input = Yes then pop up a textbox and let user fill in the reason in it.
When user's input = No, then exit.
My question are:
1. How to create a textbox at run time or
2. Textbox created on design time but by default it is not visible. when button on click, then textbox is visible.
I try following but it didn't work.
<html>
<script runat="server">
Sub Submit_Click(Sender As Object, E As EventArgs)
textbox1.visible = "true"
End Sub
</script>
<body bgcolor ="Beige">
<form runat="server">
<asp:textbox id="textbox1" text ="hello" visible = "false" width =100px runat="server"/>
<asp:button text="Submit" id="Submit" runat="server"/>
</form>
</body>
</html>
Your input is appreciated.
Theressa
Does a page can do this?
When user's input = Yes then pop up a textbox and let user fill in the reason in it.
When user's input = No, then exit.
My question are:
1. How to create a textbox at run time or
2. Textbox created on design time but by default it is not visible. when button on click, then textbox is visible.
I try following but it didn't work.
<html>
<script runat="server">
Sub Submit_Click(Sender As Object, E As EventArgs)
textbox1.visible = "true"
End Sub
</script>
<body bgcolor ="Beige">
<form runat="server">
<asp:textbox id="textbox1" text ="hello" visible = "false" width =100px runat="server"/>
<asp:button text="Submit" id="Submit" runat="server"/>
</form>
</body>
</html>
Your input is appreciated.
Theressa