`
netxdiy
  • 浏览: 681643 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

部署一个最简单的用于Google Search 的Webpart(downmoond原创)

 
阅读更多

部署一个最简单的用于Google Search 的Webpart(downmoon),请参照以下三步:
第一:
将以下代码存为google.aspx(《》替换为<>)
《%@ Page Language="c#" %》
《!-- Search Google --》
《center》
《FORM method=GET action="
http://www.google.com/search " target="_blank"》
《TABLE bgcolor="#FFFFFF"》《tr》《td》
《A HREF="
http://www.google.com/ "》
《IMG SRC="
http://www.google.com/logos/Logo_40wht.gif "
border="0" ALT="Google" align="absmiddle" Height="40"》《/A》
《INPUT TYPE=text name=q size=25 maxlength=255 value=""》
《INPUT type=submit name=btnG VALUE="Google Search" style="font-size:10"》
《/td》《/tr》《/TABLE》
《/FORM》
《/center》
《!-- Search Google --》


第二:
将google.aspx放在SPS服务器的
C:/Program Files/Common Files/Microsoft Shared/web server extensions/60/TEMPLATE/Layouts/MyPage下
并在IIS中将该目录MyPage设为虚拟目录,应用程序池设置为 “MSSharePointPortalAppPool”(必须)
第三:
在客户端访问
http://sp-hgh/_layouts/MyPage/google.aspx
如果成功,则在你的网站某页面放置一”页面察看器”Web 部件!,地址为上述地址》

OK! 搜索一下 欢迎与邀月交流,net技术与软件架构 试试!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics