文章列表
 
您正在查看 "c#/.net" 分类下的文章

2007年08月09日 15:08

以前想实现显示论坛的楼数时费了很大周折去搞什么循环、FindControl等

哈哈,原来那都是走了弯路了

发现个比较简便的方法:

<%#Container.ItemIndex+1%>

就这么一句搞定!!

 
2007年07月28日 11:47


文借助vs2005中自带的FileUpload控件实现图片文件的上传并生成缩略图。
     实现过程:选择图片上传成功后,取得已经存在服务器的文件生成缩略图,并且判断是否是图片类型的文件,这个的判断可以在程序中修改,本程序只是判断了“image/bmp”、“image/gif”、“image/pjpeg”三种类型。
     代码如下:
     upfile.aspx文件
  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upfile.aspx.cs" Inherits="upfile_upfile" %

 
2007年07月04日 14:17

<%@ Page language="c#" Codebehind="Example.aspx.cs" AutoEventWireup="false" Inherits="Webs.other.Example" %>
<HTML>
<HEAD>
<title>Example</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

 
2007年06月23日 21:46
 
2007年06月13日 22:18
    AspNetPager控件是一个比较好的翻页控件,只需要传入一个参数(总记录数)就可以将数据
绑定到AspNetPager上了.
     翻页时,传入当前页的索引以及每页的记录数就可以了.

下面是一段简单的代码:
 
2007年06月06日 16:44

--drop procedure p_page
--go

create procedure p_page

(
@Tables    varchar(1000), --表名如testtable
@PrimaryKey    varchar(100),--表的主键,必须唯一性
@Sort    varchar(200)    =    NULL,--排序字段如f_Name asc或f_name desc(注意只能有一个排序字段)
@CurrentPage    int    =    1,--当前页
@PageSize    int  

 
2007年05月19日 16:16

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;

namespace xmlDemo
{
      /**//**//**//// <summary>
 

 
2007年04月13日 1:20
<!--StartFragment-->[C#]

public static Process RunningInstance()  
{  
      Process current = Process.GetCurrentProcess();
      Process[] processes = Process.GetProcessesByName (current.ProcessName);
       //Loop through the running processes in with the same name

       foreach (Process process in processes)
 
2007年03月19日 20:21

using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;

/// <summary>
/// Summary description for SqlHelper
/// </summary>
public class SqlHelper
{
     //public static string CONN_STR = @"Server=HUDENGWEN\SQLEXPRESS;Database=MQSDB;Trusted_Connection=True";
     public static string CONN_STR = System.Configu

 
2007年03月18日 15:32
function _doPostBack(){};  
if(typeof("__doPostBack")=="function")  
{  
_doPostBack=__doPostBack;  
__doPostBack=_doPostBackNew;  
}  

document.attachEvent("onmousemove",_onmousemove);  
var _isPosting=false;  
var _divMask=null;  

function _onmousemove()  
{  
if(_divMask)  
with(_divMask.runtimeStyle)  
 
   
 
 
文章分类
 
   
 
文章存档
 
     
 
最新文章评论
  

这个可行么。、、、
 

貌似有错误,可能有点早了 提示 并不包括那一列
 

谢谢!
 

请问存储过程中的users表有啥作用,能否透露下users表的结构?
 

MD5是不可逆转的...
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu