· 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 ...
· 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...
· 我们在传统的web程序当中比较头疼的一件事是屏幕的刷新感。虽然有server push的技术,但在IE中较难实现。现在webservice给了我们这样一个机会,大家都知道webservice是基于soap的,而soap是XML的应用,如果你曾经用过ms XML sdk3.0的话就会知道里面有个XMLhttp方法,其实在那时我们就已经可以用XML...
· 好了,至此,我们的webservice就完成了,大家可能不满了,还是没实现无刷新嘛,别急,这是客户端的事。下面我们就来做这项工作。
一般来说我们完全可以做一个HTML页面,而不用server page,但为了顺便说明怎样做组件,我决定作一个server control,先来看一下代码
using System;
using System.Web.U...
· 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"]); ...
· ASP.net bate2 版本的MD5加密方法:(大家可要有点奉献精神喔,这是我搞了三个小时才搞出来的啊)
----------------------------------------String hai;
hai = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("这里填上要加密的字符串","MD5");
· 在ASP.NET中获取文件属性(Retrieving File Information In ASP.NET)
By Steven Smith使用ASP.NET我们可以很容易的得到文件的相关信息,包括:文件名、路径、扩展名、大小和创建以及使用日期等。下面,我们就通过一段代码看看如何取得文件的相关信息。如果我们使用典型的ASP来获取文件信息,它必 ...
· using System;
using System.Collections;
using System.Configuration;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using ...
· public ICollection GetSearchResult(String txtSearch, int StartIndex, int PageSize)
{
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
SqlDataAdapter myCommand = new S...
· One of the things that I personally found frustrating with classic ASP was the difficulty associated with completing many common Web-related tasks. For example, the need to allow Web visitors to upload files to the Web server is fairly common for Web developers; however, with...
· using System;<br>
using System.Web;<br>
using System.Net;<br>
using System.IO;<br>
using System.Text;<br>
namespace SendMessage<br>
{<br>
<br>
public bool SendMsg(MsgInfo msg)<br>
...