与问题相关的网站设置 [英] Problem related web setup

查看:93
本文介绍了与问题相关的网站设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Web应用程序,并在我的应用程序中使用带有日期的比较验证器.
正常测试时可以使用.

但是,当创建该应用程序的Web安装程序,然后启动安装程序然后运行应用程序时,comapre验证程序将无法正常工作.

请解决我的问题

I''m creating a web application and I''m using compare validator with dates in my application.
It will work when normal testing.

But when creating web setup of that application and then start the setup and then run application then comapre validator is not properly working.

Please solve my problem

推荐答案

这是我的html代码,如下所示.


This is my html code which is shown below.


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
    <asp:Label ID="Label1" runat="server" Text="From Date"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TxtBoxFromDate" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="TxtBoxFromDate_CalendarExtender" runat="server"

        Enabled="True" TargetControlID="TxtBoxFromDate" Format="dd/MM/yyyy"

        TodaysDateFormat="dd/MM/yyyy">
    </cc1:CalendarExtender>
    <br />
    <br />
    <asp:Label ID="Label2" runat="server" Text="To Date"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TxtBoxToDate" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="TxtBoxToDate_CalendarExtender" runat="server"

        Enabled="True" TargetControlID="TxtBoxToDate" Format="dd/MM/yyyy"

        TodaysDateFormat="dd/MM/yyyy">
    </cc1:CalendarExtender>
    <br />
    <br />
    <asp:CompareValidator ID="CompareValidator1" runat="server"

        ControlToCompare="TxtBoxToDate" ControlToValidate="TxtBoxFromDate"

        ErrorMessage="CompareValidator" Operator="LessThanEqual" Type="Date"

        ValueToCompare="dd/MM/yyyy">To Date must be greater than From Date</asp:CompareValidator>

    </form>
</body>
</html>


这篇关于与问题相关的网站设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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