I have a page where a RadAjaxPanel1, Button1, RadNumericTextBox1
button and textbox are in radAjaxPanel.
now I don't want to see RadNumericTextBox1 when page load first time.
So I have write down visible=false in page load event.
and when user click on the button I want to show that textbox.
using following code.
RadNumericTextBox1 visible true/ false works but
I can not write down just numeric value but I can also write down alphabets in that RadNumericTextBox1!!!
Why?
and once i remove page_load event's line (RadNumericTextBox1.Visible = false;) It started to work perfect!!!
Why?
I am using "prometheus control Q2".
button and textbox are in radAjaxPanel.
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <br /> |
| <radA:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"> |
| <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" Width="227px"> </asp:Button> |
| <br /> |
| <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"> |
| </telerik:RadNumericTextBox></radA:RadAjaxPanel> |
now I don't want to see RadNumericTextBox1 when page load first time.
So I have write down visible=false in page load event.
| protected void Page_Load(object sender, EventArgs e) |
| { |
| RadNumericTextBox1.Visible = false; |
| } |
and when user click on the button I want to show that textbox.
using following code.
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| if(RadNumericTextBox1.Visible==false) |
| RadNumericTextBox1.Visible = true; |
| else |
| RadNumericTextBox1.Visible = false; |
| } |
RadNumericTextBox1 visible true/ false works but
I can not write down just numeric value but I can also write down alphabets in that RadNumericTextBox1!!!
Why?
and once i remove page_load event's line (RadNumericTextBox1.Visible = false;) It started to work perfect!!!
Why?
I am using "prometheus control Q2".