Time of Update: 2018-12-03
/// <summary>/// PageBaseNew 的摘要說明/// </summary>public class PageBaseNew:System.Web.UI.Page { public PageBaseNew() { this.Load += new System.EventHandler(PageBaseNew_Load); } private void PageBaseNew_Load(object sender,
Time of Update: 2018-12-03
最近在做一個資訊發布系統。要有上傳檔案和下載的功能直接上源碼: <script language="JavaScript" type="text/javascript" > function addFile() { var str = '<BR><INPUT type="file" size="50" NAME="File" runat="server">'
Time of Update: 2018-12-03
前文中提到用keyword解決了餅表徵圖簽中同時顯示數值和佔比的問題,方法類似這樣:chart1.Series[0].Label =
Time of Update: 2018-12-03
Demo:<titles><asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" Text="Chart for .NET Framework" Alignment="TopLeft" ForeColor="26, 59, 105"> </asp:Title><asp:Title Docking="Left"
Time of Update: 2018-12-03
後台代碼: private void DataBind() { ProductByYear py = new ProductByYear(); for (int i = 0; i < RadioButtonList1.Items.Count; i++) { if (RadioButtonList1.Items[i].Selected) { py.Company
Time of Update: 2018-12-03
GridView控制項中加自動序號,有多種實現方法,你只需要根據的實用要求來確定。總的來分為後台寫法和前台寫法,後台寫法一般不考慮分頁的情況下使用,原理就是在GridView 綁定資料時,在RowDataBound 事件中來處理。頁面的列為:<asp:BoundField HeaderText="序號" />或用<asp:TemplateField HeaderText="序號"> <ItemTemplate> </ItemTemplate> &
Time of Update: 2018-12-03
protected static void SetLineStyle(Chart control, double max, double min, ChartValueType valueType) { /* */ //網格樣式 control.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.Gainsboro;
Time of Update: 2018-12-03
一、整合方法1.將fckeditor檔案夾添加到程式2.在程式添加Files檔案夾並設定寫的許可權(檔案夾屬性--安全--設定訪問使用者的許可權為完全控制)(建議添加在同級目錄)3.對程式集 添加引用 滑鼠右鍵--瀏覽--選擇DLL檔案4.工具箱添加控制項 滑鼠右鍵--選擇工具 --瀏覽--選擇DLL檔案5.修改Web.config --
Time of Update: 2018-12-03
以前對WinForm表單顯示和表單間傳值瞭解不是很清楚最近做了一些WinForm開發,把用到的相關知識整理如下A.WinForm中表單顯示顯示表單可以有以下2種方法:Form.ShowDialog方法 (表單顯示為模式表單)Form.Show方法
Time of Update: 2018-12-03
DevComponents.DotNetBar.MessageBoxEx ==MESSAGEBOX十一種提示訊息:常用的兩種:1.提示警告 DevComponents.DotNetBar.MessageBoxEx.Show(""); MessageBoxEx.Show("請輸入要查詢的內容", "系統提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);2.確定與取消 if
Time of Update: 2018-12-03
01.private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) 02. { 03. 04. pnlBottom.Enabled = true; 05. //獲得當前選中的行 06. int rowindex = e.RowIndex; 07. 08.
Time of Update: 2018-12-03
上不了圖:直接上源碼 private void treeview_hr_AfterSelect(object sender, TreeViewEventArgs e) { TreeNode node = e.Node; if (node.Level == 1) //子節點 { if
Time of Update: 2018-12-03
KindEditor 是什嗎?KindEditor 是一套開源的線上HTML編輯器,主要用於讓使用者在網站上獲得所見即所得 (WYSIWYG)編輯效果,開發人員可以用 KindEditor 把傳統的多行文本輸入框(textarea)替換為可視化的富文本輸入框。 KindEditor 使用 JavaScript 編寫,可以無縫地與 Java、.NET、PHP、ASP 等程式整合,比較適合在 CMS、商城、論壇、部落格、Wiki、電子郵件等互連網應用上使用。主要特點:● 快速:體積小,載入速度快●
Time of Update: 2018-12-03
通常我們在做BS項目樹形菜單的,判斷好許可權後點擊節點URL跳轉到指定的頁面最近好玩寫寫WINFORM,點擊節點從資料庫中讀取類型 進行執行個體化,不認識!!!上網查查看到這個方法Activator.CreateInstance(type)就改改代碼了: try { Type type = Type.GetType("frmclass"); if (type != null)
Time of Update: 2018-12-03
using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class
Time of Update: 2018-12-03
/// <param name="fieldlist"></param>欄位列表,如id,title,content /// <param name="condition"></param>條件,如id<100 /// <param name="pkey"></param>主鍵,自增 /// <param
Time of Update: 2018-12-03
string fileName = "201096218686"; string p = "201096198974.pdf";//定義檔案名稱 string filePath = Server.MapPath("DataFile/" + p);//轉換為實體路徑 Response.ClearContent();//清空緩衝區內容 Response.ClearHeaders();//清空緩衝區HTTP頭 string FilePost = filePath.Substring(filePath.
Time of Update: 2018-12-03
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;/// <summary>///
Time of Update: 2018-12-03
預存程序:USE [ZM]GO/****** Object: StoredProcedure [dbo].[UP_SalesAnalyis] Script Date: 03/31/2012 08:27:40 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- ============================================= -- Author: <David Gang> --
Time of Update: 2018-12-03
1.通常會按地區或者產品分月顯示百分比的:後台代碼: private void Stacked(DataTable dt) { this.Chart2.Width = 540; this.Chart2.Height = 350; DataTable mdt = new DataTable(); mdt = DataTableConvert.Transpose(dt,"區間");// DataTableUpdated(dt);