日期:2014-05-18 浏览次数:20462 次
//这个是后台的方法
[AjaxPro.AjaxMethod]
public bool CheckAuthidContain( int authId )
{
bool retValue = false;
IList list = Common.Cache.CommonRule.GetInstance().GetCacheEntityListByEntityName("Auth");
if ( list != null && list.Count > 0 )
{
foreach (DAL.Entity.Auth auth in list)
{
if (auth.AuthId == authId)
{
retValue = true;
}
}
}
return retValue;
}
------解决方案--------------------
就是用ajax就行了...具体代码不写了.
如果对ajax没有什么认识就找些入门的资料看看吧,不然写出来你也不知道什么意思
------解决方案--------------------
问题不是很难,ajax控件很多,都可以解决...
------解决方案--------------------
<script type="text/javascript">
function show(path)
{
alert('我得到了路径:'+path);
}
</script>
------解决方案--------------------
可以这样子,在页面中写一个空的JS标签 <script id="jsCode"></script>
在点击按钮要保存图片的位置时:
//取到图片的位置
var m_top = document.getElementById("img").style.top;
var m_left = document.getElementById("img").style.left;
//将参数传至save.ashx
document.getElementById("jsCode").src="save.ashx?top=" + m_top + "&left=" + m_left;
在save.ashx中得到传的参数,然后保存就行,以上说的是.net方法,如果是jsp的话,把参数传至某个jsp页面也可以
------解决方案--------------------
maybe it can help you
http://blog.csdn.net/greatchao88/archive/2008/06/03/2508628.aspx
------解决方案--------------------