Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

asp:RegularExpressionValidator error in sharepoint server 2013 wikipage site

$
0
0

hi can anybody help me
to fix this issue

I place a asp.net gridview in a sharepoint 2013 page, I can see the data In the gridview

BUT

When I place a RegularExpressionValidator  to validate a edit textbox , I get this error in the wikipage

Sorry, something went wrong

The control type 'System.Web.UI.WebControls.RegularExpressionValidator' is not allowed on this page. The type System.Web.UI.WebControls.RegularExpressionValidator, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a could not be found or it is not registered as safe.

Correlation ID: 642f589c-03fc-606f-c9bd-a42d88b62178    

Date and Time: 19-11-2013 15:35:21

My asp.net code in the wikipage

<EditItemTemplate>
      <asp:TextBox ID="TextBoxG2" MaxLength="4" runat="server" Text='<%# Bind("Firstname") %>' ValidationGroup="G2">      
      </asp:TextBox>
       <asp:RegularExpressionValidator runat="server" ErrorMessage="RegularExpressionValidator" ValidationGroup="G2" ControlToValidate="TextBoxG2" id="RegularExpressionValidator1"></asp:RegularExpressionValidator>
     </EditItemTemplate>





Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>