首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C#
/*专家滚动开始*/
        .rollBox img{border:none;}
        .rollBox{width:1004px;overflow:hidden;margin:0 auto;height:145px; }
        .rollBox .Cont{width:929px;overflow:hidden;margin:0 auto;}
        .rollBox .ScrCont{width:100000000px;}
        .rollBox .Cont .pic{width:80px;float:left;text-align:center;padding:0 9px;}
        *+html .rollBox .Cont .pic{width:80px;float:left;text-align:center;padding:0 9px;}
        .rollBox .Cont .pic img{padding:2px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto; }
        .rollBox .Cont .pic a:hover img{-moz-opacity:0.86;}
        .rollBox .Cont .pic p{line-height:26px;color:#505050;}
        .rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;}
        .rollBox .Cont a:hover{color:#f00;text-decoration:underline;}
......................
阅读全部 | malu5527 贴于 2015年5月8日 17:00     hide bbsi
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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 login : System.Web.UI.Page//这个是 声明一个 Login类,继承自System.Web.UI.Page,它是一个公共部分类
......................
阅读全部 | Ms姜 贴于 2015年4月21日 22:31     hide bbsi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Calculator
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
......................
阅读全部 | WIHATOW 贴于 2015年3月5日 18:36     hide bbsi
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 团团圆圆饭店管理系统
{
......................
阅读全部 | 程序袁 贴于 2014年12月22日 11:13     hide bbsi
protected void pub(string id, int pubFlag)
    {
        /* string strtb = "SELECT d.学生姓名,a.学生学号,d.性别,a.就业方式,c.职位名称" +
                    "a.备注,b.就业单位名称 " +
                    " FROM Student_baseinfo AS d,zj_netinfoEx AS a INNER JOIN zj_job_infoEx AS b " +
                    " ON a.招聘信息编号 = b.招聘信息编号 " +
                    " LEFT OUTER JOIN zj_job AS c ON a.招聘岗位编号 = c.职位编号 " +
                    " WHERE a.valid != 0 AND b.valid!=0 AND a.学生学号 = d.学生学号 AND a.招聘信息编号='" + id + "'";*/
        string str = "SELECT d.学生姓名,d.性别,a.学生学号,a.就业方式,a.备注," +
                "a.应聘信息编号,b.招聘信息编号,b.就业单位名称,b.招聘标题,c.职位名称 " +
                " FROM Student_baseinfo AS d,zj_netinfoEx AS a INNER JOIN zj_job_infoEx AS b " +
                " ON a.招聘信息编号 = b.招聘信息编号 " +
......................
阅读全部 | 不喜欢编程 贴于 2014年11月26日 14:26     hide bbsi
protected void cbx_search_CheckedChanged(object sender, EventArgs e)
    {
        string strYH = Session["yh_name"].ToString().Trim();
        for (int i = 0; i < gridcl.Rows.Count; i++)
        {

            CheckBox cbxTemp = (CheckBox)gridcl.Rows[i].FindControl("cbx_search");
            if (cbxTemp.Checked)
            {
                if (DB.ConnectDBServer())
                {
                    string strBM = gridcl.Rows[i].Cells[1].Text;
......................
阅读全部 | maxiaohui 贴于 2014年10月20日 11:50     hide bbsi
//C# DES加密解密之解密方法         
public string Decrypt(string pToDecrypt, string sKey)        
{            
     DESCryptoServiceProvider des = new DESCryptoServiceProvider();            
     byte[] inputByteArray = new byte[pToDecrypt.Length / 2];            
     for (int x = 0; x < pToDecrypt.Length / 2; x++)            
     {                
        int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2),16));               inputByteArray[x] = (byte)i;            
     }            
     byte [] inputByteArraykey = new byte[sKey.Length / 2];            
     for (int x = 0; x < sKey.Length / 2; x++)            
     {                
......................
阅读全部 | ws9187 贴于 2014年8月14日 09:20     hide bbsi
namespace bbbc
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            Random n = new Random();
            while (true)
            {
                int[] arr = new int[5];
                
......................
阅读全部 | 大小不点 贴于 2014年8月5日 12:40     hide bbsi
public partial class Savewendang : Form
    {
        private SqlConnection con = null;//数据库连接
        private SqlCommand cmd = null;//数据库操作
        private BinaryReader read = null;//二进制读取
        private long fileSize = 0;//文件大小
        private string fileName = null;//文件名字
        private string fileType = null;//文件类型
        private byte[] files;//文件

        SqlBaseClass G_SqlExecute = new SqlBaseClass();

......................
阅读全部 | 落叶飘香 贴于 2014年8月1日 17:33     hide bbsi
int   a, b, c;
           int   s,p;
            Console.WriteLine("请输入三角形的三条边");
            a = Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            c = Convert.ToInt32(Console.ReadLine());
           s = Convert.ToInt32(Console.ReadLine());
          p = Convert.ToInt32(Console.ReadLine());
            s= (a + b + c) / 2;
            s = (p - a) * (p - b) * (p - c) * p;
           Console.WriteLine("Math.Sprt(s)={0}", Math.Sqrt(s));
          
......................
阅读全部 | a4709 贴于 2014年3月21日 23:18     hide bbsi
上一页 1 2 3 4 5 6 7 8 9 下一页