asp.net控制和updatepanel控制问题 [英] asp.net control and updatepanel control problem

查看:69
本文介绍了asp.net控制和updatepanel控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net 3.5中,我创建了一个网站,该网站保存在客户端计算机中.在updatepanel中,有一个面板(id =''panel3''),其中包含一个复选框列表.两个按钮(chkAll和unchkAll)在该更新面板内.在客户端计算机中,按钮可用于检查或取消选中列表,但是当我使用客户端计算机的固定IP从计算机浏览网站时,页面已打开,但按钮不起作用.为什么?
再次,panel3被javascript函数设置为隐藏,并在源代码视图中的body onload事件中调用该函数.在客户端计算机上,它工作正常,但可以从我的计算机面板进行浏览.

所以我的主要问题是,为什么javascript函数可以在本地计算机上正常工作,但是在任何人浏览时都不能正常工作?请帮忙.

in asp.net 3.5 I have created a website which is kept in client computer.In an updatepanel there is a panel(id=''panel3'') inside which a checkboxlist is situated.two buttons(chkAll and unchkAll) are inside that update panel.In client computer the buttons are working to check or uncheck the list,but when i browse the website from my computer with the fixed ip of the client computer,the page is opened but buttons are not working.Why?
Again the panel3 is set hidden by a javascript function,and the function is called from body onload event in source view.In client computer it is working fine but browsing from my computer panel is visible.

So my main question is why javascript functions are working fine from local computer,but not working when any one browse it?Please help.

推荐答案

首先检查浏览器问题.浏览器及其版本是否相同.
可能是它的触发问题,但您告诉过它它可以在本地计算机上工作.因此没有触发问题.
在浏览器兼容的视图中尝试您的代码.

其次,如果您曾经使用过Ajaxtoolkit,则将其安装在远程IIS上.然后检查
First Check the browser issue. both browser and its version are same or not.
May be its trigger problem but you told that its working on local computer. So there is no trigger issue.
Try your code in browser compatible view.

Second if You had use Ajaxtoolkit install it on remote IIS. Then check it


这篇关于asp.net控制和updatepanel控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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