I am trying to use the numeric editor control on a web form. It enters and shows data properly; however, during postback the control value is ALWAYS null or empty! The text is empty, and the values (such as Value, ValueInt, etc) are all NULL.
Again the value displays on the control fine, but I can't seem to get the value back from the server side. What is going on or what am I doing wrong?
/Tom
Hi Tom,
I do not remember anybody reported a similar problem.
Please test codes below and verify that it works correctly. If it works, but your application fails, then I can suggest to check in your application following potential reasons:1. If editor (or its container) is created dynamically at run time, then it should be repeated in every single session/postback and ID of editor/containers should be the same.2. If editor value/text/etc. is initialized/modified dynamically on load or other server events.3. If ValueChanged event is processed and value is modified.
aspx:
<ig:WebNumericEditor ID="WebNumericEditor1" runat="server"></ig:WebNumericEditor><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><asp:Button ID="Button1" runat="server" Text="Button" />
aspx.cs:
protected void Page_Load(object sender, EventArgs e){ this.Label1.Text = "Value:" + this.WebNumericEditor1.Value + ", int:" + this.WebNumericEditor1.ValueInt;}
Good morning. I have the same issue with WebNumbericEditor controls. No value properties show the keyed value. Text, Value, ValueInt are all blank. My first thought was "OK maybe controls are disabled and that's squashing the values."
But no, they're enabled when I step through them. Only the IG WebNumericEditor controls are missing values. My standard ASP.NET TextBox controls have the expected values. what gives?