【WPF气泡样式弹窗效果代码分享】教程文章相关的互联网学习教程文章

asp.net导出Excel类库代码分享

复制代码 代码如下:using System;using System.Collections.Generic;using System.Reflection;using System.Web;using Excel = Microsoft.Office.Interop.Excel; /// <summary>///ExcelClass 的摘要说明/// </summary>public class ExcelClass{ /// <summary> /// 构建ExcelClass类 /// </summary> public ExcelClass() { this.m_objExcel = new Excel.Application(); } /// <summary> /// 构建Exc...

asp.net MVC分页代码分享

本文实例为大家分享了MVC分页代码,供大家参考,具体内容如下 using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Web; using System.Text; using System.Web.Mvc; using System.Web.Routing; using System.Data.Objects.DataClasses; namespace System.Web.Mvc {public static class PagerHelper{/// <summary>/// 分页/// </summary>/// <param name="helper"></param>/...

MVC异步分页代码分享【图】

如图: 1、控制器代码 //// GET: /AjaxUser/shopEntities shop = new shopEntities();public ActionResult Index(){return View();}public ActionResult loadjson(){int pageSize = Request["pageSize"] == null ? 10 : int.Parse(Request["pageSize"]);int pageIndex = Request["pageIndex"] == null ? 1 : int.Parse(Request["pageIndex"]);int totalCount = shop.tbl_admin.Count();//给前台userinfo所有的数据,并且是json格式...

WPF气泡样式弹窗效果代码分享【图】

页面设计需求,做了一个气泡形状的弹出框,效果如下: 设计思路如下:1. 使用Path绘制气泡的尖尖,将这个放到顶层;2. 在用border绘制长方形框,将这个放到底层,并且设置Margin值,使得Path图层和border看起来衔接在一起。 代码如下:<Window x:Class="BubblePanelTest.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="MainWindow"...

WPF自定义搜索框代码分享【图】

首先下载搜索图标:控件中的搜索图标下载地址:http://www.easyicon.net/1183666-Search_icon.html 搜索框设计过程比较简单: 1、先定义一个Rectangle作为背景 2、然后中间放TextBox输入,可以重写其中的模板。提示语Label放在模板中,可以在模板的触发器中控制隐藏显示~ 3、搜索按钮-大家随便在网上下个就行了。 UserControl界面: <UserControl x:Class="WpfApplication18.SearchControl"xmlns="http://schemas.microsoft.com/w...

Asp.Net类型转换类(通用类)代码分享

废话不多说了,直接给大家贴代码了,具体代码如下所述:/// <summary>/// 类型转换类/// 处理数据库获取字段为空的情况/// </summary>public static class DBConvert{#region------------------ToInt32类型转换------------------/// <summary>/// 读取数据库中字符串并转换成Int32/// 为空时返回0/// </summary>/// <param name="obj">object类型的值</param>/// <returns>Int32类型</returns>public static int ToInt32(object o...

ASP.NET餐饮管理系统制作代码分享【图】

页面介绍展示:以上是餐饮管理系统制作图片介绍,接下来是代码部分。 menu.aspx <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="menu.aspx.cs" Inherits="menu" Title="无标题页" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <form id="form1" runat="server"> < style="height: 300px"> <asp:GridView ID="GridView1" runat="...

asp.net+ajaxfileupload.js 实现文件异步上传代码分享

由于代码很简单,这里就闲话不多说了,直接上代码,小伙伴们自己研读代码就明白了。 前台代码: 代码如下: /*修改头像*/ //上传 function _sc() { $(".ckfile").html("").css("color", "#535353"); $("#_userImgPath").val(""); var str = $("#file").val(); if ($.trim(str) == "") { $(".ckfile").html("请选择文件。").css("color", "red"); ...

smtp发送带附件的邮件代码分享

该方式直接保存为HTML文件,也可以是文本文件,其它格式效果不是很好代码如下: MailMessage mmsg = new MailMessage(); mmsg.Subject = "邮件标题"; mmsg.Body = "邮件内容"; mmsg.To.Add("accept@qq.com");//接收邮箱 byte[] bytes = System.Text.Encoding.Default.GetBytes (@"<table><tr><td width=150>1234567891234567 </td><td width=80>12345678</td></tr></table>"); MemoryS...

.net socket客户端实例代码分享

客户端代码代码如下:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Net; using System.Threading; using System.Net.Sockets; namespace W.Common { public class CacheSocket { public Socket skClient; public string ip = string.Empty; public int port = -1; public int netID; // public int...

asp.net导出Excel类库代码分享

代码如下:using System;using System.Collections.Generic;using System.Reflection;using System.Web;using Excel = Microsoft.Office.Interop.Excel; /// <summary>///ExcelClass 的摘要说明/// </summary>public class ExcelClass{ /// <summary> /// 构建ExcelClass类 /// </summary> public ExcelClass() { this.m_objExcel = new Excel.Application(); } /// <summary> /// 构建ExcelClass类...

asp.net微软图表控件使用示例代码分享

代码如下:<configuration> <system.webServer> <handlers> <remove name="ChartImageHandler" /> <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </handlers> </syst...

.Net中生成二维的表格的代码 分享

代码如下: 代码如下:  void Page_Load(object o, EventArgs e)   ...{   DataTable dt = GetData(); //assume GetData returns the DataTable   //probably better to use Hashtable for depts and months too, but to keep the order, lets use ArrayList   string sSeparator = ":";   ArrayList alDept = new ArrayList(); //种类   ArrayList alMonth = new ArrayList(); //代码   Hashtable ht = new Hashtab...