· 在ASP.NET中获取文件属性(Retrieving File Information In ASP.NET)
By Steven Smith使用ASP.NET我们可以很容易的得到文件的相关信息,包括:文件名、路径、扩展名、大小和创建以及使用日期等。下面,我们就通过一段代码看看如何取得文件的相关信息。如果我们使用典型的ASP来获取文件信息,它必 ...
· ASP.net bate2 版本的MD5加密方法:(大家可要有点奉献精神喔,这是我搞了三个小时才搞出来的啊)
----------------------------------------String hai;
hai = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("这里填上要加密的字符串","MD5");
· using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;namespace cj168.DataAccess
{
public class MagsDB
{
//SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); ...
· 好了,至此,我们的webservice就完成了,大家可能不满了,还是没实现无刷新嘛,别急,这是客户端的事。下面我们就来做这项工作。
一般来说我们完全可以做一个HTML页面,而不用server page,但为了顺便说明怎样做组件,我决定作一个server control,先来看一下代码
using System;
using System.Web.U...
· 我们在传统的web程序当中比较头疼的一件事是屏幕的刷新感。虽然有server push的技术,但在IE中较难实现。现在webservice给了我们这样一个机会,大家都知道webservice是基于soap的,而soap是XML的应用,如果你曾经用过ms XML sdk3.0的话就会知道里面有个XMLhttp方法,其实在那时我们就已经可以用XML...
· ASP.NET offers a powerful way to render information from a database or XML file: Databinding. However, sometimes you need to be able to perform the databinding for almost all of the items in the data source. Or perhaps you have some special formatting or secondary data...
· Transforming an XML document using XSL/T and outputting the results to the browser is a fairly simple task in ASP.NET. The following user control demonstrates the ease with which this can be accomplished. This user control has a parameter for the XML source(XMLSource), and a ...
· //
// m_cmdAuthorsDelete
//
this.m_cmdAuthorsDelete.CommandText = @"DELETE FROM authors WHERE (au_id = @au_id) AND (address = @address OR @address1 IS NULL AND address IS NULL) AND (au_fname = @au_fname) AND (au_lname = @au_lname) AN...
· <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<TITLE>客户端DataSet</TITLE>
<SCRIPT>
var iRowIdx =...