<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fly_ball的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fly_ball</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fly_ball]]></copyright><item><title><![CDATA[C# 访问拥有账号密码的共享文件夹]]></title><link>https://blog.csdn.net/fly_ball/article/details/117517294</link><guid>https://blog.csdn.net/fly_ball/article/details/117517294</guid><author>fly_ball</author><pubDate>Thu, 03 Jun 2021 13:51:14 +0800</pubDate><description><![CDATA[C# 通过用户名和密码获取共享文件夹访问权限

局域网共享文件夹需要用户名和密码才能访问，通过程序怎样才能获得文件夹访问权限呢？

这里主要利用了DOS命令中的“NET USE”命令来实现。




public static void GetAccessControl(string path,string user,string pwd)
{       
      Process p = new Process();
            
      p.StartInfo.FileName = ]]></description><category></category></item><item><title><![CDATA[Oracle中where条件判断区分大小写问题。]]></title><link>https://blog.csdn.net/fly_ball/article/details/116496256</link><guid>https://blog.csdn.net/fly_ball/article/details/116496256</guid><author>fly_ball</author><pubDate>Fri, 07 May 2021 16:19:16 +0800</pubDate><description><![CDATA[Oracle中where条件判断区分大小写，区分大小写，区分大小写。
重要的事情说三遍！

]]></description><category></category></item><item><title><![CDATA[C#查询DataSet中的符合要求的数据，以及DataSet中in修饰符的使用]]></title><link>https://blog.csdn.net/fly_ball/article/details/115696723</link><guid>https://blog.csdn.net/fly_ball/article/details/115696723</guid><author>fly_ball</author><pubDate>Wed, 14 Apr 2021 14:03:56 +0800</pubDate><description><![CDATA[c#获取DataSet中符合要求的数据
user表
id                  user                         name                            password
1                   张三                        张三	                                123456
2                   李四                        李四    ]]></description><category></category></item><item><title><![CDATA[C# 将DataGridView中显示的数据导出到CSV]]></title><link>https://blog.csdn.net/fly_ball/article/details/114114145</link><guid>https://blog.csdn.net/fly_ball/article/details/114114145</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 09:38:13 +0800</pubDate><description><![CDATA[创建类
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace Export
{
    pub]]></description><category></category></item><item><title><![CDATA[c#中将datagridview中的数据生成为excel文件]]></title><link>https://blog.csdn.net/fly_ball/article/details/114113719</link><guid>https://blog.csdn.net/fly_ball/article/details/114113719</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 09:30:37 +0800</pubDate><description><![CDATA[开发环境：vs2019
语言：c#
  private void output_excel_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count == 0)
            {
                MessageBox.Show("DataGridView中内容为空,请先导入数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.W]]></description><category></category></item><item><title><![CDATA[c#将datagridview中数据生成为xml文件]]></title><link>https://blog.csdn.net/fly_ball/article/details/114113516</link><guid>https://blog.csdn.net/fly_ball/article/details/114113516</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 09:27:28 +0800</pubDate><description><![CDATA[开发环境：vs2019
没多b话直接上代码
  private void button1_Click(object sender, EventArgs e)
        {
           
            DataTable dt = GetDataGridView(dataGridView1);
            DataSet ds = new DataSet();
            ds.Tables.Add(dt);
            ds.WriteXml(F]]></description><category></category></item><item><title><![CDATA[C#选择本地csv文件读取]]></title><link>https://blog.csdn.net/fly_ball/article/details/114113299</link><guid>https://blog.csdn.net/fly_ball/article/details/114113299</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 09:24:17 +0800</pubDate><description><![CDATA[开发环境：VS 2019
语言：c#
窗口：winform
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog open = new OpenFileDialog() { Filter = "*|*.csv" };
            open.ShowDialog();
            dataGridView1.DataSource = Load]]></description><category></category></item><item><title><![CDATA[在winfrom选择某个excel文件读取到DataGridView控件中]]></title><link>https://blog.csdn.net/fly_ball/article/details/114112265</link><guid>https://blog.csdn.net/fly_ball/article/details/114112265</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 09:13:11 +0800</pubDate><description><![CDATA[开发环境：Visual Studio 2019
1.需要在项目引用中引用Microsoft office object LIbrary方法
2.
3.在winform窗体中放入一个botton控件，datagridview，和combox控件
4.在botton的单击事件中进行操作
 DataTableCollection tableCollection;
        private void btnbrowse_Click(object sender, EventArgs e)
        {
 ]]></description><category></category></item><item><title><![CDATA[C# 获取指定文件夹中所有的文件(包括子文件夹的文件)]]></title><link>https://blog.csdn.net/fly_ball/article/details/114111679</link><guid>https://blog.csdn.net/fly_ball/article/details/114111679</guid><author>fly_ball</author><pubDate>Fri, 26 Feb 2021 08:57:59 +0800</pubDate><description><![CDATA[using System;
using TopDAL;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] ]]></description><category></category></item><item><title><![CDATA[把数据绑定到文本框并且不可选中]]></title><link>https://blog.csdn.net/fly_ball/article/details/109179372</link><guid>https://blog.csdn.net/fly_ball/article/details/109179372</guid><author>fly_ball</author><pubDate>Tue, 20 Oct 2020 13:44:24 +0800</pubDate><description><![CDATA[在界面传来ID
  protected void Button1_Command(object sender, CommandEventArgs e)
        {
            int id = Convert.ToInt32(e.CommandArgument.ToString());
            Response.Redirect("updated.aspx?id=" + id);
        }
在ui界面接收数据

```csharp
先获取一个数据
public ]]></description><category></category></item><item><title><![CDATA[html跳转窗口和文本框提示]]></title><link>https://blog.csdn.net/fly_ball/article/details/109109406</link><guid>https://blog.csdn.net/fly_ball/article/details/109109406</guid><author>fly_ball</author><pubDate>Fri, 16 Oct 2020 08:45:30 +0800</pubDate><description><![CDATA[跳转窗口
window.location.href="需要跳转的界面";


文本框提示
再文本中输入元素placeholder
placeholder="需要提示的 文字" 

全选与反选
	$(function() {
				$("#c1").click(function() {
					$("#dv1 :checkbox").attr("checked", true);
				});
				$("#btn1").click(function() {
					$("#dv1 :checkbox]]></description><category></category></item><item><title><![CDATA[vs自带验证控件的 使用]]></title><link>https://blog.csdn.net/fly_ball/article/details/109090159</link><guid>https://blog.csdn.net/fly_ball/article/details/109090159</guid><author>fly_ball</author><pubDate>Thu, 15 Oct 2020 09:09:16 +0800</pubDate><description><![CDATA[添加酒电用户信息
DAL层
  public static int add(Model.VIP model)
        {
            string sql = string.Format("insert  into VIP values('{0}','{1}','{2}','{3}','{4}','{5}','{6}',null)", model.VIP_name, model.Sex, model.Pid, model.Tel, model.Rzjl, model.Address, m]]></description><category></category></item><item><title><![CDATA[用vs实现注册登录]]></title><link>https://blog.csdn.net/fly_ball/article/details/109043589</link><guid>https://blog.csdn.net/fly_ball/article/details/109043589</guid><author>fly_ball</author><pubDate>Tue, 13 Oct 2020 08:12:54 +0800</pubDate><description><![CDATA[public static UserInfo GetUser(string name, string pwd)
        {
        //填写搜索姓名和密码的sql语句
            string sql = string.Format("select * from UserInfo where LoginName='{0}' and Password='{1}'", name, pwd);
            DataTable dt = DBHelper.ExcuteTab.]]></description><category></category></item><item><title><![CDATA[thickbox控件和jqzoom控件的使用]]></title><link>https://blog.csdn.net/fly_ball/article/details/108938549</link><guid>https://blog.csdn.net/fly_ball/article/details/108938549</guid><author>fly_ball</author><pubDate>Tue, 06 Oct 2020 13:36:43 +0800</pubDate><description><![CDATA[thickbox控件
引用jqery文件以及thickbox组件的css文件

 &lt;a href="img/yzm.png" class="thickbox"&gt;
        &lt;img src="img/yzm.png" /&gt;
    &lt;/a&gt;
`用a标签把需要放大的图片包起来 class引用thickbox类
``
jqzoom控件

```html
&lt;script src="jqzoom/jqzoom.pack.1.0.1.js"&gt;&lt;/script]]></description><category></category></item></channel></rss>