返回首页

在我的ASP.NET(C#)的网站,我想要做网站的搜索和谷歌搜索如何做到这一点。

我要搜索在所有网站的话,如果这个词存在或XN \毫升档案中的任何文字diles我想在一个页面中显示该文件的所有内容。

普莱舍帮助我该怎么办

回答

评论会员:深KNTH 时间:2012/02/07
尝试这样的代码:

public void totalprice()

   {

       float pricee;

       int quantityy;

      float totalprice;

       foreach (GridViewRow row in GridView1.Rows)

       {

           int pro_id = Convert.ToInt32(GridView1.DataKeys[row.RowIndex][0]);

           pricee = dal.getprice(pro_id);

           quantityy = dal.getquantity(pro_id);

           totalprice += quantityy * pricee;

       }

      lbltprice.Text = totalprice.ToString();

   }

希望它帮助!

不要忘了投票{S0的}
评论会员:vino2012 时间:2012/02/07
{C}