自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Gerry的博客

C# Winform , ASP.NET WEB

  • 博客(40)
  • 资源 (1)
  • 收藏
  • 关注

原创 iOS-IPA-Release

iOS企业开发帐号发布ipa到服务器 发布前需要的文档:1.https服务器,一定要https(本文档不介绍https证书相关知识)2.打包好的ipa文件3.一个html页面(用来展示下载页面)4.一个plist文件(配置ipa下载链接) Plist文件(imageUpload.plist):将imageUpload.plist文件放到https服务器,为pli

2016-09-26 16:44:17 882

原创 H5 iOS传值

HTML5端需要两个方法一个触发传值,一个接收传值触发传值:接收传值:(一定要是$window服务里的方法才能接收传值) $window.getiOSString = function(str) { alert("接收的值为:" + str); }

2016-07-21 09:22:56 1282

原创 AngularJS 跨域

后台.NET WebApi AngularJS会有跨域问题,jquery 使$.post又正常请求时添加headers:app.controller("ppCtrl", function($scope, $http) { $scope.PostSchoolName = function() { var BaseUrl = "http://localhost:2996/

2016-07-19 16:43:19 631

原创 .net Model上下文类

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data.Entity;using System.ComponentModel.DataAnnotations;using System.ComponentModel;using System.Da

2016-07-16 18:08:47 1533

原创 ionic 图片轮播

2016-07-15 16:22:18 594

原创 .net Linq 基础

public ActionResult Index() { //创建DataTable DataTable dt = new DataTable(); DataRow dr = dt.NewRow(); dt.Columns.Add("id", typeof(int));

2016-07-14 17:29:13 400

原创 ASP.NET MD5加密

public ActionResult Index() { string a = CreateMD("zrh"); ViewBag.pw = CreateMD(a); return View(); } public string CreateMD(string password)

2016-07-14 15:33:17 296

原创 .net webApi

using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;namespace MvcApi.Controllers{ public class ProductController :

2016-07-13 16:09:18 437 1

原创 .net 响应form请求

if (Request.Form["name"] != null && Request.Form["tel"] != null) { string name = Request.Form["name"]; string tel = Request.Form["tel"]; if

2016-07-12 13:01:58 607

原创 git使用

1.創建倉庫mkdir gitgerry2.初始化倉庫cd gitgerrygit init3.提交到暫存區git add app.js4.提交到分支git commit -m "註釋內容"5.查看狀態git status6.查看提交loggit log7.查持所有提交commit IDgit reflog8.丢弃工作区的修改git

2016-07-01 16:51:05 280

原创 AngularJS directive指令

AngularJS js:var app = angular.module("myApp", ["ionic"])app.controller("indexCtrl", function($scope) { $scope.ruihua = "zhangruihua";});app.directive("addBookButton

2016-06-27 16:19:40 379

原创 .net保存html文件

protected void Button1_Click(object sender, EventArgs e) { string sTitle = "健康專欄第100期"; string html = ""; html += ""; html += ""; ht

2016-06-24 14:01:06 650

原创 Javascript createDocumentFragment提搞創建DOM性能

$scope.addButton = function() { var fragment = document.createDocumentFragment(); for (var i = 0; i < 5; i++) { var button = document.createElement("button"); button.innerHTML = i; fragme

2016-06-22 09:18:27 345

原创 javascript 图片解析Base64字符串

var txtBaseCode = document.getElementById("txtBaseCode"); function convertImgToBase64(url, callback, outputFormat) { var canvas = document.createElement('CANVAS'), ctx = canvas.getContext(

2016-05-17 17:04:17 2613

原创 .net 图片Base64编码

解析图片Base64编码: System.IO.MemoryStream ms = new System.IO.MemoryStream(); System.Drawing.Bitmap bp = new System.Drawing.Bitmap(@"d:\image\splash1.png"); bp.Save(ms,S

2016-05-17 15:20:31 742

原创 ASP.NET WebServices注意事项

1.Ajax 跨域问题: 2.使用 JSON JavaScriptSerializer 进行序列化或反序列化时出错。字符串的长度超过了为 maxJsonLength 属性设置的值: 完整的Web.Co

2016-04-22 21:48:32 405

原创 Oracle 修改表结构

1.添加新字段:ALTER TABLE tablename ADD (column1 VARCHAR2(30),column2 VARCHAR2(30),column3 DATE)2.修改字段长度:ALTER TABLE tablename MODIFY (column1 VARCHAR2(60))3.修改字段名称:ALTER TABLE tablename

2016-04-22 09:02:21 446

转载 ASP.NET程序通过web.config为网站添加MIME

为网站添加MIME类型,可以在IIS中的“MIME类型”设置中添加,但是这样操作网站每次移动到新的服务器或是重新部署环境都需要再重新添加,这里介绍一个一劳永逸的方法,就是在网站的配置文件web.config中添加MIME类型。注:Web.config文件是一个XML文本文件,它用来储存ASP.NETWeb 应用程序的配置信息,通过.NET新建一个Web应用程序后,默认情况下会在根目录自动创建一

2016-04-21 17:06:13 2169

原创 .NET 事务处理

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using System.Data.OleDb;namespace Transac

2016-02-19 11:20:27 307

原创 SQL笔记

1.选择第5到第10条数据,ID不连续ORACLE:SELECT * FROM (SELECT a.*, ROWNUM rn FROM tablename a WHERE ROWNUM = 5SQL:(不包含第5数据记录,从第6条记录开始显示,如果需要包含第5条记录:SELECT TOP 4 user_no FROM tablename)SELECT TOP 5 * FR

2016-02-19 08:18:42 229

原创 .net 讀取DataReader 返回List<T>

public List GetPhoneList() { string sql = "select USER_NAME,PLATFORM,PLATFORM_VERSION,PHONE_MODEL,PHONE_DEVICEID,APP_VERSION,LAST_LOGIN_DATE,ADMIN_ROLE from global_phone_info";

2016-01-22 09:25:42 870

原创 .net list<T> 轉DataSet

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;namespace AppPhoneInfo{ public parti

2016-01-22 09:22:00 427

原创 ionic对话框

Ionic對話框 Home 彈出對話框 彈出確認框 Footer var app = angular.module("Myapp", ["ionic"]); app.controller("MyappCtrl", function($scope, $ionicPopup) { $scope.showdig

2016-01-13 11:57:23 1676 1

原创 CSS 漸變效果

#msisapp_header, #msisapp_footer { background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#333), to(#111)); background: -moz-linear-gradient(top, #333, #

2016-01-05 13:20:08 282

原创 .net 確認對話框

<asp:Button ID="btn_reset" runat="server" Text=" 重 置 " OnClick="btn_reset_onclick" OnClientClick="return confirm('重置會將新加的資料全部清空,確定要重置嗎?')" />效果如下:

2016-01-05 13:11:04 361

原创 Cordova iOS Header和Statusbar 重疊

document.addEventListener("deviceready", MyDeviceReady, false)function MyDeviceReady() { if (device.platform == "iOS") { document.getElementById("header").style.marginTop = "20px"; }

2016-01-04 18:40:29 788

原创 asp.net TreeView綁定數據庫

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.OleDb;using System.Data;namespace WebApp

2015-08-19 10:52:44 357

原创 ASP.NET 操作XML文件,超簡單的方法

XML文件: 4 小華 男 20 1 小張 男 21 2 小瑞 女 22 3 小錦 女 17 ASP.NET代碼:protected void Btn_onclick(object sender, EventA

2015-08-14 14:17:58 577

原创 asp.net 手動生成一個DataTable

DataTable dt = new DataTable();        DataRow dr;        dt.Columns.Add(new DataColumn("Del No", typeof(string)));        dt.Columns.Add(new DataColumn("WMS數量", typeof(int)));        dt.C

2015-08-10 11:25:07 422

原创 ASP.NET導入Excel

public DataSet ExcelToDS(string Path) { try { string strConn = "Provider=Microsoft.Ace.OleDb.12.0;" + "data source=" + Path + ";Extended Properties='Exc

2015-08-10 11:20:37 397

原创 ASP.NET GridView里操作DropDownList

protected void DDL_OnSelectedIndexChanged(object sender, EventArgs e)   { DropDownList ddl_pos = (DropDownList)sender; //獲取控件 GridViewRow row_pos = (GridViewRow)ddl_pos.Parent.Parent;

2015-08-01 18:27:13 804

原创 ASP.NET GridView 自增編號

proctected void Gridiew1_RowDataBound(object sender,GridviewRowEventArgs e)          {         if(e.Row.RowIndex!=-1)          {         int id=e.Row.RowIndex+1;             

2015-07-22 06:57:14 445

原创 asp.net 讀寫XML文件

讀取XML內容            XmlDocument xml=new XmlDocument();            xml.Load(Server.MapPath("text.xml"));            XmlNode node = xml.SelectSingleNode("root");//根節點            XmlNode nd =

2015-07-17 14:54:31 352

原创 Javascript 彈出日曆并返回值,Calendar控件

//子窗體日曆控件事件 protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)    {        e.Cell.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroun

2015-07-15 10:58:36 622

原创 ASP.NET GridView保存数据到Excel

// GridView1.AllowPaging = false; //清除分页           // GridView1.AllowSorting = false; //清除排序                  Button1_Click(sender, e); //绑定gridview1数据源的函数。            Response.Clear();

2015-07-02 08:45:16 466

原创 C# 控制音量大小

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.Interop

2015-06-24 15:04:51 6245 2

原创 C# Winfrom開機自動啟動

//写注册表开机自启动           string run = @"Software\Microsoft\Windows\CurrentVersion\Run";            RegistryKey reg = Registry.CurrentUser;            RegistryKey Task = reg.OpenSubKey(run, true);

2015-06-24 08:17:09 484

原创 C# DataGridView手动添加数据

开发环境:VS2008.Net版本:.Net Framework 2.0最终效果图片:源码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;

2015-06-22 15:57:55 47310 1

原创 C# Oracle分頁完整代碼

開發環境:VS2008.NET版本:.Net Framework2.0using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System

2015-06-18 09:59:50 534

原创 C# winfrom 录音

导入API函数:                  [DllImport("winmm.dll")]        public static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);开始录音:

2015-06-17 08:35:08 3454

delphi VCLSkin

delphi VCLSkin 一个用着不错的皮肤工具,给大家一起用。

2013-06-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除