Welcome Guest Search | Active Topics | Sign In | Register

Set Mask dynamcally - problem Options
Saji
Posted: Tuesday, April 29, 2008 7:00:11 PM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
I have a maskedit with a 00000 mask. However I want to set the mask dynamically depending on a dropdown selection. These all are working fine, but when I am submitting the page, I am getting MaskEdit1.Text as blank, and when i checked the Mask its reset to 00000, What can i do in this case the save the state of the control

Saji
eo_support
Posted: Wednesday, April 30, 2008 6:10:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you create a test page that demonstrates the problem? Make sure the test page does not include anything else and runs.

Thanks!
Saji
Posted: Sunday, May 4, 2008 3:42:08 AM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
Yes i tried that way also, still not working: pasting the code below.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="index.aspx.vb" Inherits="index" %>

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body leftmargin="100" topmargin="100">
<form id="form1" runat="server">
<div>
<table>
<tr>
<td style="width: 100px">
<asp:Label ID="Label1" runat="server" Text="mask Type"></asp:Label></td>
<td style="width: 100px">
<asp:DropDownList ID="ddlMaskType" runat="server" AutoPostBack="True" Width="152px">
<asp:ListItem Selected="True">Select</asp:ListItem>
<asp:ListItem Value="P">PAN No</asp:ListItem>
<asp:ListItem Value="T">TIN No</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 100px">
<asp:Label ID="Label2" runat="server" Text="Mask"></asp:Label></td>
<td style="width: 100px">
<eo:MaskedEdit ID="MSKMask" runat="server">
<eo:MaskedEditSegment Mask="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" SegmentType="Mask" />
</eo:MaskedEdit></td>
</tr>
<tr>
<td align="center" colspan="2">
<asp:Button ID="btnSubmit" runat="server" Text="Submit" /></td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="lblValueofMask" runat="server"></asp:Label></td>
</tr>
</table>
</div>
</form>
</body>
</html>


----------------------------------------- CODE BEHIND --------------------------------



Partial Class index
Inherits System.Web.UI.Page

Protected Sub ddlMaskType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlMaskType.SelectedIndexChanged
If ddlMaskType.SelectedValue = "P" Then
MSKMask.Mask = "LLLL0000L"
ElseIf ddlMaskType.SelectedValue = "T" Then
MSKMask.Mask = "LL00LL"
End If
End Sub

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
lblValueofMask.Text = MSKMask.Text
End Sub
'in segment collection property i have set
'mask as 'AAAAAAAAAAAAAAAAAA'
'and segment type as 'Mask'
'and when i click the submit button MSKMask.Mask changes to default set mask ie AAAAAAAAAAAAAAAAAA


End Class



THANKS IN ADVANCE IF YOU CAN HELP ME

SAJI
Saji
Posted: Friday, May 9, 2008 5:26:23 AM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
any hope ??
eo_support
Posted: Friday, May 9, 2008 7:03:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have confirmed this is a problem and we are working on fixing it. Hopefully we will have an update build next week with the fix.

Thanks!
eo_support
Posted: Tuesday, May 20, 2008 2:02:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
This issue has been addressed in build 2007.2.51.
Saji
Posted: Tuesday, May 20, 2008 5:55:15 PM
Rank: Advanced Member
Groups: Member

Joined: 1/3/2008
Posts: 32
yes thanks, its working fine


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.