验证导致的打印问题 [英] Problem in Printing due to validations

查看:65
本文介绍了验证导致的打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有使用验证控件的表单.填写表单并提交后,我将面板的visible属性设置为true,以便用户可以看到其输入的内容,然后有一个打印按钮可以打印.问题在于,由于表单和面板都在同一页面上,因此打印按钮无法正常工作.它要求我将文本输入到有验证的控件中.请告诉我如何解决这个问题.我已经使用了Java脚本函数来打印表格.我试图给打印"按钮一个不同的验证组,但错误仍然相同.并且该表单在更新面板内部,但我要打印的面板在更新面板之外..

Hi I have a form in which i have used validation controls. After filling the form and submitting it , i have set a panel''s visible property to true so that user can see the contents that it entered and then there is a print button to print. The problem is that since the form and the panel are both on the same page so the print button is not working . It asks me for inputting the text into those controls on which there is validation. please tell me how to solve this problem. I have used java script function to print the form. i tried to give the print button a different validation group but the error remaind same. and also the form is inside update panel but the panel which i want to print is outside the update panel..

推荐答案

hello,

如果是ASP.NET按钮,则可以将CauseValidation属性设置为false.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.causesvalidation.aspx [
hello,

If that a ASP.NET button, you can set the CauseValidation property to false.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.causesvalidation.aspx[^]


这篇关于验证导致的打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆