这是无效的网络资源请求。 javascript 日期时间选择器
您好,我有一个用于其中一个文本框控件的日期时间选择器,请参阅下面的代码
<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>"
现在问题是从一个页面移动到使用上述代码的另一个页面,同时对上述代码进行第三次调试,然后才实际显示第二页错误是扔
“这是一个无效的网络资源 请求”
“这是一个无效的网络资源 要求。”} System.Web.HttpException: {“这是无效的网络资源请求。”} 数据:{System.Collections.ListDictionaryInternal} 帮助链接: 没什么 内部异常:什么都没有 消息:“这是无效的网络资源请求。” 来源:“系统.Web” StackTrace:“在System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext 上下文)在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值& 同步完成)” 目标站点:{System.Reflection.RuntimeMethodInfo}
不确定为什么这种情况只发生第三次
"<a href="#" onclick="javascript:displayDatePicker('<%=formViewUser.FindControl("txtenddate").ClientID %>');return false;">"
?
请帮忙!
Hi I have a datetimepicker for one of the textbox control see below the 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 is moving from one page to another page where the above code is used while debugging the third time on the above code before it actually displays the second page an error is throw
"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}
HelpLink: Nothing
InnerException: Nothing
Message: "This is an invalid webresource request."
Source: "System.Web"
StackTrace: " at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
step, Boolean&
completedSynchronously)"
TargetSite: {System.Reflection.RuntimeMethodInfo}
Am not sure why this happens only third time on
"<a href="#" onclick="javascript:displayDatePicker('<%=formViewUser.FindControl("txtenddate").ClientID %>');return false;">"
?
Please help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仔细调试应用程序后,我不敢相信,我发现错误的罪魁祸首是 CustomControl 验证器,我只是停止使用它并创建了自己的验证,之后一切正常。
谢谢
高卢人
Can't believe it after carefully debugging the app i figured out that the error culprit was a CustomControl Validator, i simply stopped using it and created my own validation and everything worked fine after.
Thanks
Gauls