ASP.net验证 [英] ASP.net Validation

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

问题描述

我有3个aspx页,其中一个母版页.

我已经用MAster Page连接了三个页面,我正在使用Ajaxtoolkit进行验证(RequiredField,Filteration和validationtools,即要显示的摘要).

在StudentData页面上,每个验证都可以,我点击了Sumbmit按钮,一切都很好,

但是,如果我想离开StudentData.aspx页面并转到其他页面而不填充StudentData.aspx页面,它将要求填写表单并重新验证.如果它正确验证,则可以将我移动到其他页面.

我是aspx.net的新手,我什么都不知道.请帮帮我.

如果要查看演示,只需登录aca.edu.in,然后单击在线注册",然后再次单击登录页面",而无需在studentData.aspx表单中填写任何详细信息.

在此先感谢.

I Have Three aspx pages, With one Master page.

I Have Connected Three pages with MAster Page, I am using Ajaxtoolkit for validation (RequiredField and Filteration and validationtools i.e Summary to display).

On StudentData Page every Validation is OK, Ween I CLick on Sumbmit Button All is well,

But if I want to leave StudentData.aspx Page, and Go to other Page without Filling StudentData.aspx Page, It ask For Filling the Form and it Revalidate. if It Validate correctly, it permits to Move me to Other Page.

I Am new to aspx.net, i Donot Know Much Thing. Please Help me.

If you Want to see Demo Just Log On aca.edu.in click on Online Registration and then again click on Login Page without Filling any details in studentData.aspx Form.

Thanks in Advance.

推荐答案

prathamesh1234写道:
prathamesh1234 wrote:

我是aspx的新手.净,我不知道太多.请帮助我.

I Am new to aspx.net, i Donot Know Much Thing. Please Help me.



那么,为什么在地球上您试图一次学习三件事却明显地陷入困境呢?您是这所学校的学生吗?他们在.NET中有一门课吗?



Then why on earth are you trying to learn three things at once, and obviously getting stuck ? Are you a student at this school ? Do they have a class in .NET ?

prathamesh1234写道:
prathamesh1234 wrote:

紧急



抱歉,不适合我们.我们很乐意提供帮助,但是对我们大喊大叫是不礼貌的.就个人而言,您的项目对我们没有任何意义.



Not for us, sorry. We''d love to help, but yelling at us is rude. Your project means nothing to us, on a personal level.


@Christian Graus

谢谢.好吧,很抱歉,如果紧急单词伤害了您.
ya,我正在学校学习,并试图学习.Net我自己.

您可以为我的上述答案提供帮助吗?
@Christian Graus

Hey Thanx for Reply. OK i am sorry if URGENT Word have Hurt you.
ya i am studying in School and trying to learn .Net Myself.

Can you Help for my above answers?


您有两个选项可以解决您的问题,这是左侧的链接正在运行客户端验证.

1.将左侧的LinkBut​​tons更改为HyperLinks.

-或-

2.将LinkBut​​tons上的CausesValidation属性设置为false.
You have two options to fix your problem which is the links on the left are running the client side validation.

1. Change the left side LinkButtons to HyperLinks.

-- OR --

2. Set the CausesValidation property on the LinkButtons to false.


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

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