【尝试发帖】

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_42810844/article/details/84643314

新人试水·先看看样子怎么样

大家猴啊~

没有用过CSDN,所以让我先写一个没有任何含量的水贴试试水哇,看看这是怎么写,才能好看一点

功能快捷键

撤销:Ctrl/Command + Z
重做:Ctrl/Command + Y
加粗:Ctrl/Command + B
斜体:Ctrl/Command + I
标题:Ctrl/Command + Shift + H
无序列表:Ctrl/Command + Shift + U
有序列表:Ctrl/Command + Shift + O
检查列表:Ctrl/Command + Shift + C
插入代码:Ctrl/Command + Shift + K
插入链接:Ctrl/Command + Shift + L
插入图片:Ctrl/Command + Shift + G

插入代码

博客设置页面,选择一款你喜欢的代码片高亮样式,下面展示同样高亮的 代码片.

// An highlighted block
cout<<"你们好啊~"<<endl;
展开阅读全文

重新发帖

09-14

//导入数据库rn int index = 0;rn List list = new List();rn List clist = new List();rn List lt = new List();rnrn private void Input_Click(object sender, EventArgs e)rn rn string[] name = "名称", "代码", "辖区", "经纬度[X]", "经纬度[Y]" ;rnrn List intx = new List();rnrn List namex = new List();rnrn for (int i = 0; i < this.DataList.Columns.Count; i++)rn rn for (int j = 0; j < name.Length; j++)rn rn if (this.DataList.Columns[i].HeaderText == name[j])rn rn intx.Add(i);rnrn if (index == 0)rn rn if (name[j] == "名称")rn rn namex.Add("jdmc");rn rn if (name[j] == "代码")rn rn namex.Add("jddm");rn rn if (name[j] == "辖区")rn rn namex.Add("xq");rn rn if (name[j] == "经纬度[X]")rn rn namex.Add("jwdx");rn rn if (name[j] == "经纬度[Y]")rn rn namex.Add("jwdy");rn rn rn elsern rn if (name[j] == "名称")rn rn namex.Add("wbmc");rn rn if (name[j] == "代码")rn rn namex.Add("wbdm");rn rn if (name[j] == "辖区")rn rn namex.Add("xq");rn rn if (name[j] == "经纬度[X]")rn rn namex.Add("jwdx");rn rn if (name[j] == "经纬度[Y]")rn rn namex.Add("jwdy");rn rn rn list.Add(name[j]);rn lt.Add(i);rn break;rn rn rn rn rnrnrn是这样的,要从datagridview里的数据导入oracle去,但小弟学不好,不会弄,请大神们帮帮小弟,教思路和完成。rnrnrn数据的显示分别是图一,图一是没有修改的从execl中导入datagridview,图二是datagridview要导入oracle里的rn[img=https://img-bbs.csdn.net/upload/201509/14/1442229281_418093.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201509/14/1442229361_131250.jpg][/img] 论坛

发帖提问:

05-04

string dir = Server.MapPath(DateTime.Now.ToString("yyMMdd"));rn if (!File.Exists(dir))rn rn Directory.CreateDirectory(dir);//生成文件夹rn MessageBox(dir);rn ClassLibrary1.CustomerInfo Cif = new ClassLibrary1.CustomerInfo();rn //返回头部和底部标签rn string Top = string.Empty;rn string footer = string.Empty;rn dt = Cif.TemplateSel().Tables[0];rn Top = dt.Rows[0]["Content"].ToString();rn footer = dt.Rows[1]["Content"].ToString();rn //内容rn ClassLibrary1.News pro = new ClassLibrary1.News();rn int cmdSql = pro.News_Sel("EN");rn int Pagesize = 0;rn if (cmdSql % 40 == 0)rn rn Pagesize = cmdSql / 40;rn rn elsern rn Pagesize = cmdSql / 40 + 1;rn rn for (int y = 1; y <= Pagesize; y++)rn rn string productlist = string.Empty;rn if (y == 1)rn rn dt = Cif.News_Sel("EN").Tables[0];rn rn elsern rn dt = Cif.NewsTop40("EN", Convert.ToInt32(y)).Tables[0];rn rn for (int a = 0; a < dt.Rows.Count; a++)rn rn productlist += (" " + dt.Rows[a]["NewsTime"] + "" + dt.Rows[a]["newsName"] + "");rn rn string first = "";rn string prev = "";rn string next = "";rn string last = "";rn if (y == 1)rn rn first = "首页";rn rn elsern rn first = "首页";rn rnrn if (y == 1)rn rn prev = "上一页";rn rn elsern rn prev = "上一页";rn rnrn if (y == Pagesize)rn rn next = "下一页";rn rn elsern rn next = "下一页";rn rnrn if (y == Pagesize)rn rn last = "末页";rn rn elsern rn last = "末页";rn rn ht.Add("$first$", first);rn ht.Add("$prev$", prev);rn ht.Add("$next$", next);rn ht.Add("$last$", last);rn ht.Add("$Top$", Top);rn ht.Add("$footer$", footer);rn ht.Add("$Left_CassType$", GetLiftProList("sType"));rn ht.Add("$productlist$", productlist);rn ht.Add("$newsCount$", "" + cmdSql.ToString() + "");rn ht.Add("$Count$", "" + y + "/" + Pagesize + "");rn string ItemIndex_html = ToIO.Reader("Template2/ns.html"); //读取模板rn ItemIndex_html = ToIO.Replace(ItemIndex_html, ht);rn ToIO.Writer(dir+"/News_" + y.ToString() + ".html", ItemIndex_html);rn ht.Clear();rn rn MessageBox("操作成功! ");rn rn好久没提问了,遇到个问题,生成出来的路径抱错rnF:\测试\程序\yyy\yike\Template2\100504/News_1.html”不是有效的虚拟路径。 rnToIO.Writer(dir+"/News_" + y.ToString() + ".html", ItemIndex_html);这里生成出来的路径跟前面相反了,我是第一次做把生成出来的文件放到生成出来的文件夹里面。自己的想法是:当我点击生成的时候,前面读取出父类别名称做文件夹名、子类别名称做文件名。这样比较好做优化。rn 论坛

没有更多推荐了,返回首页