This is an invalid webresource request. javascript datetimepicker

Hi, I have a datetimepicker for one of the textbox controls, see below code

<script src="../client-scripts/date-picker.js" type="text/javascript">



"<td class="datafieldTBL" align="left">
<asp:TextBox ID="txtenddate" runat="server" Text='<%# Bind("EndDate")%>'></asp:TextBox>
  onclick="javascript:displayDatePicker('<%=formViewUser.FindControl("txtenddate").ClientID %>');return false;"
</a> 
</td>" 

Now the problem moves from one page to another, where the above code is used for debugging a third time using the above code, before it displays the second page with a throw error

"This is an invalid webresource request."

"This is an invalid webresource request." } System.Web.HttpException: {"This is an invalid webresource request." } Data: {System.Collections.ListDictionaryInternal} Help Help: nothing Internal exception: nothing Message: "This is an invalid webresource request." Source: "System.Web" StackTrace: "in System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest (HttpContext context) in System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HExputeppep) in System.Web.HttpApplication.ExecuteStep (IExecutionStep step, Boolean & completedSynchronously) "TargetSite: {System.Reflection.RuntimeMethodInfo}

Not sure why this only happens a third time on

"<a href="#" onclick="javascript:displayDatePicker('<%=formViewUser.FindControl("txtenddate").ClientID %>');return false;">"

?

Please, help!

+3
1

, , ValidatorControl Validator, , .

+1

Source: https://habr.com/ru/post/1731011/


All Articles