hello everyone,
I bind RadMaskedTextBox to get the IP address value from database, but it displays the IP value in RadGrid as "123156255255" format, and when i click "Edit", then the IP value display as normal IP format "123.156.255.255".
The following is souce code:
<telerik:RadMaskedTextBox ID="hostipTextBox" Runat="server" Height="22px" InvalidStyleDuration="100"
Mask="<0..255>.<0..255>.<0..255>.<0..255>"
Text='<%# Bind("HostIP") %>' TextWithLiterals="000.000.000.000" Width="220px" PromptChar=" _" RoundNumericRanges="False" DisplayMask="<0..255>.<0..255>.<0..255>.<0..255>">
</telerik:RadMaskedTextBox>
I also check the database, the value it saved is "123156255255".
Can anyone tell me how can I make the value that RadMaskedTextBox saved in database as normal IP format, i.e. 123.23.255.255, and display normal IP format both in RadGrid and in its Edit model?
Thanks
xiangm
I bind RadMaskedTextBox to get the IP address value from database, but it displays the IP value in RadGrid as "123156255255" format, and when i click "Edit", then the IP value display as normal IP format "123.156.255.255".
The following is souce code:
<telerik:RadMaskedTextBox ID="hostipTextBox" Runat="server" Height="22px" InvalidStyleDuration="100"
Mask="<0..255>.<0..255>.<0..255>.<0..255>"
Text='<%# Bind("HostIP") %>' TextWithLiterals="000.000.000.000" Width="220px" PromptChar=" _" RoundNumericRanges="False" DisplayMask="<0..255>.<0..255>.<0..255>.<0..255>">
</telerik:RadMaskedTextBox>
I also check the database, the value it saved is "123156255255".
Can anyone tell me how can I make the value that RadMaskedTextBox saved in database as normal IP format, i.e. 123.23.255.255, and display normal IP format both in RadGrid and in its Edit model?
Thanks
xiangm