C#sql去除换行符
SqlConnection conn = new SqlConnection("server=.; uid =sa; pwd = *****; database = 数据库; Max Pool Size = 512;"); conn.Op...
>>阅读全文SqlConnection conn = new SqlConnection("server=.; uid =sa; pwd = *****; database = 数据库; Max Pool Size = 512;"); conn.Op...
>>阅读全文private void toolBar1_ToolbarItemClick(object sender, ToolbarClickEventArgs e) { switch (e.Name) { case "home...
>>阅读全文可以用构造函数传值,例如this.Form.Show(new窗体名称(pram1,pram2));然后在form中新增构造函数,例如publicSmobilerform1(stringtextbox1,stringtextbox2):base(){InitializeCompon...
>>阅读全文string sqlstr = "select * from 群列表 t1 left join 用户群列表 t2 on t1.id= t2.群id where t2.用户id='"+name+"' order by t1.ID desc&...
>>阅读全文经常要取汇总值,但是前台的都是JS来计算的 这个时候我们如果直接取值,基本上是娶不到值的那我们需要怎么做呢?第一步:添加控件HiddenField1 <p>合计:<asp:Label ID="total" runat="ser...
>>阅读全文private void button1_Click(object sender, EventArgs e) { WebClient webClient = new WebClient(); webClient.DownloadFile(&q...
>>阅读全文private void NewMethod(string FullPath) { DirectoryInfo dir = new DirectoryInfo(FullPath); //文件夹 try { Dire...
>>阅读全文1、 添加模板VS2017 上面---项目-添加Windows窗体-SmobilerUserControl1.cs改个名称 为 moban.cs设置 窗体大小 250*250 就合适了(因为我设置的是一行一个 250刚好)然后设置 SQL要绑定的值1、图片我给他绑定字段:缩略图1...
>>阅读全文![]() ![]() ![]() ![]() |