ASP.NET部署问题 [英] ASP.NET Deployment Problem

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

问题描述

<input type="hidden" id="gwProxy" /><input type="hidden" id="jsProxy"  önclick="jsCall();" />

我是新来的ASP.net.我在IIS中部署了Web应用程序.它将LoginForm.aspx作为第一页.当我在IE中浏览时,登录页面即将到来,但是当我单击登录"按钮时,它并没有移至下一页.但是在Visual Studio 2008中也是如此.任何人都可以帮助我解决此问题.谢谢玛丽亚

I''m new to ASP.net. I deployed my Web Application in IIS. Which is having the LoginForm.aspx as a first page.When i''m browsing it in IE, Login page is coming but it is not moving to the next page when i clicked the Signin button. But the same is working in Visual Studio 2008. Can any one help me to clear this problem. Thanks, Maria

<input type="hidden" id="gwProxy" /><input type="hidden"  önclick="jsCall();" id="jsProxy" />
<input type="hidden" id="gwProxy"></input>
<input type="hidden" id="jsProxy"  önclick="jsCall();" />

推荐答案

玛丽亚,

如果您可以张贴在登录按钮上编写的代码,将会很有帮助.单击登录按钮时是否会遇到任何错误?

Hi Maria,

It will helpful if you can post the code you have written on signin button. Are you getting any kind of error when you click on signin button?

谢谢,
Virendra Dugar

Thanks,
Virendra Dugar 


您好,Virendra,< input type ="hidden" id ="gwProxy"</input><输入type ="hidden" id ="jsProxy"önclick="jsCall();" />

Hi Virendra,<input type="hidden" id="gwProxy"></input><input type="hidden" id="jsProxy" önclick="jsCall();" />

感谢您的回复.下面是我在登录"按钮上写的代码.

Thanks for your Reply. below is the code, what i wrote on "SignIn" button.

受保护的void SignIn_Click(对象发送者,EventArgs e)
        {          
          字符串constr = ConfigurationSettings.AppSettings ["MyLogin"];
            SqlConnection conn =新的SqlConnection(constr);
           尝试
                     {
                        this.authendication();
              conn.Open();              
                if(pwd == Password_txt.Text)
                  {
                SqlCommand cm =新的SqlCommand(从EmployeeMaster中选择指定,其中EmployeeID =""+ EmpId_txt.Text +",conn);
         ;         SqlDataReader edr = cm.ExecuteReader();
             b edr.Read();
            &b Design = edr ["Designation"].ToString();            &b ;   
                if(Design =="PM")
            &nsp {
            nbsp; b Response.Redirect("ProjectManagerForm.aspx");
           &b   }
              &bb else
                    {
            nbsp; b Response.Redirect("TeamMemberForm.aspx");
           &bsp; b   }
              &bb edr.Close();
              }
                                else
                                      {
                 Result_txt.Visible = true;
             &b Panel3.Visible = true;
              Result_txt.Text =计算机由于无效的EmployeeId而被锁定";
}
           }
           catch(SqlException exp)
           {
                        //Response.Write(输入正确的员工ID/密码");
           }
          终于
           {
                        conn.Close();
           }
       }

protected void SignIn_Click(object sender, EventArgs e)
        {           
            string constr = ConfigurationSettings.AppSettings["MyLogin"];
            SqlConnection conn = new SqlConnection(constr);
            try
            {
                this.authendication();
                conn.Open();               
                if (pwd == Password_txt.Text)
                {                   
                    SqlCommand cm = new SqlCommand("select Designation from EmployeeMaster where EmployeeID = ''" + EmpId_txt.Text + "''", conn);
                    SqlDataReader edr = cm.ExecuteReader();
                    edr.Read();
                    Design = edr["Designation"].ToString();                       
                    if (Design == "PM")
                    {
                        Response.Redirect("ProjectManagerForm.aspx");
                    }
                    else
                    {
                        Response.Redirect("TeamMemberForm.aspx");
                    }
                    edr.Close();
                }
                else
                {
                    Result_txt.Visible = true;
                    Panel3.Visible = true;
                    Result_txt.Text = "The computer is locked Because of Invalid EmployeeId";
                }
            }
            catch (SqlException exp)
            {
                //Response.Write("Enter the Correct EmployeeId / Password");
            }
            finally
            {
                conn.Close();
            }
        }


男人,当您在IE中浏览时,是否收到任何错误消息?(请注意IE状态栏中的javascript错误消息)如果有),请提及.
Man, while you are browsing in IE, did you get any error messages?(Note javascript error messages in IE statusbar if there), please mention it.


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

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