zoukankan      html  css  js  c++  java
  • 一个asp.net新闻系统学习

    1.一个简单的网页中设为主页和收藏网页的HTML代码:

    设为主页的代码:

     <a href="#" onclick ="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.mingrisoft.com')" style=" color:Black; font-size: 9pt; font-family: 宋体;  text-decoration :none;" >设置主页</a>

    收藏当前网页到浏览器收藏集的代码:

    <a href="#" onclick="window.external.addFavorite('http://www.mingrisoft.com','新闻发布网站');" style=" color:Black; font-size: 9pt; font-family: 宋体;  text-decoration :none;" >收藏本站</a>

    关闭当前页面的方法,在ASP.NET中

    Response.Write("<script language=javascript>window.close()</script>");

    2.页面中简单的传参数:

     Response.Write("<script language=javascript>window.open('showNews.aspx?id=" + id + "','','width=520,height=260')</script>");

    接受参数:

     DataRow[] row = ds.Tables["tbNews"].Select("id=" + Request.QueryString["id"]);

    《未完待续》……

  • 相关阅读:
    文本分类的研究学习
    Python中的TfidfVectorizer参数解析
    Newsgroups数据集介绍
    鸢尾花数据读取的总结
    Knapsack Problems
    3.1.6 Stamps
    3.1.5 Contact
    3.1.4 Shaping Regions
    3.1.3 Humble Numbers
    3.1.2 Score Inflation
  • 原文地址:https://www.cnblogs.com/liangdelin/p/2479664.html
Copyright © 2011-2022 走看看