| 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-18 10:49(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-18 11:12(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            TYCMC\miaojing发布于2014-10-18 15:09(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-18 17:13(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            TYCMC\miaojing发布于2014-10-19 13:34(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           
                            
    
   
      
          
            
       
      
        
                 
                 
                 
                 
            
            
             
                  
                                                     	
                       - 
                         
 
                            HaiBao 
                           
                            
 
不是单纯的把代码复制过去就可以的,你要按照上面步骤设置配置你自己相关的一些东西! 
                           
                           
      
                          
                         
                         
                        
                        
                        
                   
                 
                 
                
                
               
              
              
                
                
                
                
                     
                      
              
         
       
      
                
                
         
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-20 08:30(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           
                            
    
   
      
          
            
       
      
        
                 
                 
                 
                 
            
            
             
                  
                                                     	
                       - 
                         
 
                            TYCMC\\miaojing(提问者) 
                           
                            
 
HTTP 错误 500.19 - Internal Server Error 
无法访问请求的页面,因为该页的相关配置数据无效。 
在唯一密钥属性“name”设置为“ServiceModel”时,无法添加类型为“add”的重复集合项  
怎么解决呀 
                           
                           
      
                          
                         
                         
                        
                        
                        
                   
                 
                 
                
                
               
              
              
                
                
                
                
                     
                      
              
         
       
      
                
                
         
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            TYCMC\miaojing发布于2014-10-20 16:51(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-20 18:31(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           
                            
    
   
      
          
            
       
      
        
                 
                 
                 
                 
            
            
             
                  
                                                     	
                       - 
                         
 
                            TYCMC\\miaojing(提问者) 
                           
                            
 
Login.aspx的代码是上面的代码,后台的代码是 protected void Button1_Click(object sender, EventArgs e) 
        { 
            string uname = username.Text.Trim(); 
            if (string.IsNullOrEmpty(uname)) 
            { 
                Page.ClientScript.RegisterStartupScript(this.GetType(), \"\", \"<script>alert(\'用户名不能为空,请输入用户名!\');</script>\"); 
                return; 
            } 
            string upwd = userPwd.Text.Trim(); 
            if (string.IsNullOrEmpty(upwd)) 
            { 
                Page.ClientScript.RegisterStartupScript(this.GetType(), \"\", \"<script>alert(\'密码不能为空,请输入密码!\');</script>\"); 
                return; 
            } 
            if (uname.Equals(uname) && upwd.Equals(upwd)) 
            { 
                Session[\"username\"] = uname; 
                Response.Redirect(\"http://8075/WebReport/ReportServer?op=touchpf&__redirect__=false&username=\"+uname+\"&password=\" + upwd); 
            } 
        } 
                           
                           
      
                          
                         
                         
                        
                        
                        
                   
                 
                 
                
                
               
              
              
                
                
                
                
                     
                      
              
         
       
      
                
                
         
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            TYCMC\miaojing发布于2014-10-21 11:12(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           | 
                            
    
    
                            | 
                          
                    
                       
                                    
                 | 
              
                    
                       
              
                 | 
              
              
               
                  最佳回答  | 
               
               
                            
               
                  
              
              
                  | 
                 
                       
                        0
                       
                      
                         
                          
                           
              
                           
                   | 
                     
                 
                      
                        
                          
                           
                               
                            HaiBao发布于2014-10-21 12:08(编辑于 2023-9-6 09:34)
                            
                            | 
                         
                           
                          
                            | 
                            555                            
                            
                            | 
                          
                   
                          
                           
                            
    
   
      
          
            
       
      
        
                 
                 
                 
                 
            
            
             
                  
                                                     	
                       - 
                         
 
                            TYCMC\\miaojing(提问者) 
                           
                            
 
 function doSubmit() { 
            var username = document.getElementById(\"username\").value; 
            var password = document.getElementById(\"password\").value; 
            $.ajax({ 
                url: \"http://localhost:8075/WebReport/ReportServer?op=fs_load&cmd=fs_signin\",//单点登录的报表服务器      
                dataType: \"jsonp\",//跨域采用jsonp方式      
                data: { \"username\": username, \"password\": password }, 
                jsonp: \"callback\", 
                timeout: 5000,//超时时间(单位:毫秒)      
                success: function (data) { 
                    if (data.status === \"success\") { 
                        alert(\"success\"); //登录成功      
                        //        document.getElementById(\"login\").submit(); //登录成功提交表单,跳转到index.jsp这个登录成功页面      
                        window.open(\"http://localhost:8080/WebReport/ReportServer?reportlet.lesson55.cpt&Para=\" + para, \"_self\");//登录成功,直接跳转到数据决策系统页面     
                    } 
                    else if (data.status === \"fail\") { 
                        alert(\"fail\");//登录失败(用户名或密码错误)      
                    } 
                }, 
                error: function () { 
                    alert(\"error\"); // 登录失败(超时或服务器其他错误)      
                } 
            }); 
        } 
 
    </script> 
 
这种方法也不对 一直报 error 
                           
                           
      
                          
                         
                         
                        
                        
                        
                   
                 
                 
                
                
               
              
              
                
                
                
                
                     
                      
              
         
       
      
                
                
         
    
                            | 
                          
                    
                       
                                    
                 |