当前注册人数422991人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Atlas Tutorial: Creating an AJAX Scribble application

Atlas入门教程:创建一个AJAX爬行程序源代码

2007年12月02日
ASP.NET 2.0, AJAX Atlas, Web
因为Atlas的功能实在是非常强大,所以,本文只是就下面的两个特征做一个实例以供入门:1.从客户端脚本调用服务端Web服务 2. 简单地开发多浏览器兼容的JavaScript代码
相关知识

[WebMethod(EnableSession = true)]
public void Draw(Point[] points)
{
    Image scribbleImage = (Image)Session["Image"];
    lock(scribbleImage)
    {
        using (Graphics g = Graphics.FromImage(scribbleImage))
        using(Pen p = new Pen(Color.Black, 2))
        {
            if (points.Length > 1)
            {
                int startX = points[0].X;
                int startY = points[0].Y;

                for (long i = 1; i < points.Length; i++)
                {
                    g.DrawLine(p, startX, startY,
                        points[i].X, points[i].Y);
                    startX = points[i].X;
                    startY = points[i].Y;
                }
            }
        }
    }
}

源代码原文下载:
Atlas Tutorial: Creating an AJAX Scribble application ASP.NET Atlas is a rich set of client side and server side libraries to develop AJAX-style applications using ASP.NET. This tutorial (and probably more in this series) attempts to provide a general view of the features available in Atlas. Since, Atlas is a very vast library this very first tutorial concentrates on two most important features of Atlas: 1. Ability to call server side web services from client side scripts 2. Ease of developing cross-browser compatible JavaScript code

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载140次)

最值得关注的外文源代码

Prototype Window
Ajax Data Grid
How to attach to Browser Helper Object (BHO) with C# in two minutes
Troubleshooting Partial Rendering Errors in ATLAS and ASP.NET 2.0
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论84次,此处显示最近20次评论! 查看所有评论

870791837  2018年06月15日
好的学习资料
dwt  2018年04月17日
谢谢
Mr.wu  2017年06月08日
可以
追忆华年  2017年05月27日
可以
goodliness  2017年04月27日
谢谢,不错
天涯沙漠  2017年01月20日
强大得不行
SWAT  2016年08月07日
hao
yndxstxy2010jrsx  2015年04月07日
kankana
  2014年12月22日
ytt  2014年10月09日
还行
刚哥  2014年06月24日
hao
天气真好。。。  2014年04月01日
强大得不行
huajianlei  2014年03月15日
挺好 1
whl20092183  2013年10月31日
强大
杨小妞爱忘词  2013年09月13日
xiexie
Dick  2013年06月09日
xie xie
yuboH123  2013年05月13日
好的学习资料
marafon74  2013年04月12日
谢谢,不错
tianshiguishu  2012年10月24日
哎都好难啊,下来学学
52009311  2012年08月21日
哎都好难啊,下来学学
字数在300字内
请如实评论
相关标签
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明