FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 2438|回复: 5
打印 上一主题 下一主题

btton按钮,部署后不起作用。

[复制链接]
跳转到指定楼层
楼主
发表于 2012-11-6 06:25:58 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
程序跑起来没问题,但部署后不起作用,请老大们看看,着急。
6#
发表于 2012-12-3 06:24:01 | 只看该作者
注意检查下你的 控件命名 我刚才出错终于找到原因就是因为那个 有个控件名叫id....  你那个错误估计是iis没注册xd扩展名
5#
发表于 2012-12-3 06:17:57 | 只看该作者
我也遇到这个问题了 我在调试阶段也无法使用... 就是button按钮无法对应到相关事件上去
地板
 楼主| 发表于 2012-11-11 17:37:40 | 只看该作者
用 asp.net控件可以,不知道啥原因,请帮助下。
板凳
 楼主| 发表于 2012-11-11 17:37:14 | 只看该作者
登录页面: win7  64位下 发布后 按button按钮不起作用.
<body>
    <form id="form1" runat="server">
    <extageManager ID="ageManager1" runat="server" />
    <ext:Window ID="Window1" runat="server" Title="登录表单" IsModal="false" EnableClose="false"
        WindowPosition="GoldenSection" Width="350px">
        <Items>
            <ext:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" BodyPadding="10px"
                LabelWidth="60px" EnableBackgroundColor="true" ShowHeader="false">
                <Items>
                    <ext:TextBox ID="tbxUserName" Label="用户名" Required="true" runat="server">
                    </ext:TextBox>
                    <ext:TextBox ID="tbxPassword" Label="密码" TextMode="assword" Required="true" runat="server">
                    </ext:TextBox>
                    <ext:Button ID="btnLogin" Text="登录"  ValidateForms="SimpleForm1" ValidateTarget="Top"
                        runat="server" OnClick="btnLogin_Click">
                    </ext:Button>
                  
                </Items>
            </ext:SimpleForm>
        </Items>
    </ext:Window>
       <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />  
    </form>
</body>
</html>

protected void btnLogin_Click(object sender, EventArgs e)
    {


        UserInfoBusiness m_userInfo=new UserInfoBusiness();
        UserInfoEntity Result = m_userInfo.GetUserInfo(tbxUserName.Text);

        if (Result == null)
        {
            Alert.ShowInTop("用户名或密码错误!", MessageBoxIcon.Error);
            return;
        }
        else
        {
            if (tbxPassword.Text != Result.Password|| Result.State=="0")
            {

                Alert.ShowInTop("用户名或密码错误!", MessageBoxIcon.Error);
               
                return;
            }
        
        }

        new Cookie().setCookie("UserName", Result.UserName, 2);
        Response.Redirect("Default.aspx",true);
        
    }

沙发
发表于 2012-11-6 07:37:05 | 只看该作者
看看是不是 AXD 文件加载不了...
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-9-20 01:24 , Processed in 0.045223 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表