C#随机小数 生成
Random random = new Random(); double f = Math.Round(random.NextDouble() * (0.9 - 0.1) + 0.1, 1); string 随机小数 = f.ToStr...
>>阅读全文<div class="centerit" id="divjianjie" style="display:none; z-index:9999";"> <div class="ch...
>>阅读全文protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) ///这个必须要加啊 不然你保存的时候 他就读取了 { string path = Server.MapPa...
>>阅读全文///////////////////////// 查询 每个ID 的库存 结果 StreamReader sr = new StreamReader(Server.MapPath("../作者列表.txt"), System.Text....
>>阅读全文<div class="wrap" style="width: 579px; height: 191px"> <table width="1159"> <thead> ...
>>阅读全文因为最近弄个静态网站,需要列表页面都是静态的,这个时候网上的那些分页AspNetPager控件就没办法用了,用的话 你就没办法调取静态的值思路:比如读取一个栏目 ID为35的栏目; 给他设置查询值,然后每页查询12条数据,因为我这里设置每个页面是12条数据,这个ID35的栏目,总...
>>阅读全文i++ 和i-- for (int i = 0; i <= 10; i++) { Response.Write("<script>alert('" + i + "')</script>")...
>>阅读全文public static void FileDel(string Path) { File.Delete(Path); }上面是删除文件的方法 public bool DeleteDir(string strPath) { try { /...
>>阅读全文234567![]() ![]() |