范围验证器Visual Studio Express 2008 [英] Range Validator Visual Studio Express 2008

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

问题描述

我正在使用VS2008,我尝试使用Range Validator进行以下操作:


我有一个文本框,用户将为约会输入日期 - 日期输入请求必须至少在提出请求后7天(当前日期)但不到90天。


我已将范围验证器设置为Type = Date and Control验证= Textbox11


我现在丢失其余的代码来实现上述目的?

解决方案

A有点谷歌搜索会解决你的问题。


这里是你的代码:

展开 | 选择 | w ^ rap | 行号


< blockquote>感谢Sanjib :)

我不知道有一个ASP Classic版本的RangeValidator控件!


自原版海报(chicane).NET RangeValidator控件出现问题我想我只是添加一个指向该控件资源的链接:
RangeValidator Control(一般参考)


-Frinny

您好

感谢您的回复。我不认为我的帖子很清楚,或者我没有很好地表达它。


你在答复中提到最低价值是2009/12 / 23但是如果有人在不同的日期提交了请求,情况就不会出现这种情况,如何设置代码以使其在提交表单的当前日期之外工作,以便可以在任何日期计算出来? br />

再次感谢您的帮助。


I am using VS2008 and I trying to use the Range Validator for the following:

I have a text box that a user will input a date into for an appointment - the date entered must be at least 7 days after the request has been made (current date) but less than 90 days into the future.

I have set my range validator to Type = Date and Control to validate = Textbox11

I am now lost where the rest of the code goes to achieve the above?

解决方案

A little bit googling would have solved your problem.

Here goes your code :

Expand|Select|Wrap|Line Numbers


Thanks for that Sanjib :)
I didn''t know that there was an ASP Classic version of the RangeValidator control!

Since the original poster (chicane) is having problems with the .NET RangeValidator control I figured I''d just add a link to a resource for that control:
RangeValidator Control (General Reference)

-Frinny


Hi there
Thanks for your response. I don''t think I was clear in my post or I haven''t explianed it very well.

You mentioned in your response that the Minimum Value will be 2009/12/23 but this wouldn''t be the case if someone submitted the request on a different date, how is the code set so that it works off the Current date that the form is submitted, so that it can be calculated off any date?

Thanks again for your help.


这篇关于范围验证器Visual Studio Express 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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