分类:Web编程
共 939 篇
A protocol is a method that is used to send, receive, and handle information over a connection. Common protocols viewed from the browser include http, https, ftp, and mailto. In order for you to view information sent over a specific protocol, it must be registered. If you enter a URL for an unknown protocol (foo) in the Location Bar, you will receive a message such as, Firefox doesn't know how to open this address, because the protocol (foo) isn't associated with any program or, in Mozilla Suite/SeaMonkey, foo not a registered protocol. Once registered, the protocol can then be handled by the program you specify, such as your browser or a third party viewer. This means that a hyperlink ( e.g. foo://fred) can use the handler for protocol foo to open the file named fred. Windows…
📂 Web编程
👤 博主
📅 2008-03-31
👁 7895
👍 0
阅读全文 →
The About Asynchronous Pluggable Protocols article describes how to develop handlers for new protocols. In some cases, it may be desirable to invoke another application to handle a custom protocol. To do so, register the existing application as a URL Protocol handler. Once the application has successfully launched, it can use command-line parameters to retrieve the URL that launched it. 文章《About Asynchronous Pluggable Protocols》(中译关于“异步可插协议”(About Asynchronous Pluggable Protocols(APPs)))描述了如何为一个新的协议开发处理程序(处理器handlers)。在一些案例中,可能会描述如何调用另外一个应用程序来处理自定义协议(custom protocol)。注册已经存在的应用程序为一个URL协议处理器即可。一旦应用程序被成功地启动,我们可以使用命令行参数来重新找回URL来启动它。 ·Registering the Application Handling the Custom Protocol…
📂 Web编程
👤 博主
📅 2008-03-31
👁 8593
👍 0
阅读全文 →
using System;
using MSXML2;//引用COM:Microsoft XML, v3.0
namespace ConsoleApplication1
{
class Program
{
static void Main(string args)
{
XMLHTTP xmlhttp = new XMLHTTP();
string url = "http://www.mzwu.com/";
xmlhttp.open("GET", url, false, null, null);
xmlhttp.send("");…
📂 Web编程
👤 博主
📅 2008-03-28
👁 6253
👍 0
阅读全文 →
<%
Class Image
Private oStream
Public ImgW,ImgH
Private Sub Class_Initialize
Set oStream=CreateObject("Adodb.Stream")
oStream.Mode=3
oStream.Type=1
oStream.…
📂 Web编程
👤 博主
📅 2008-03-28
👁 8030
👍 0
阅读全文 →
使用此类可实现生成缩略图、漫射效果、棕褐色调 (老照片)效果、锐化效果、黑白效果和灰度效果。
📂 Web编程
👤 博主
📅 2008-03-26
👁 6102
👍 0
阅读全文 →
/// <summary>
/// 将字符型类型转换为整型值
/// </summary>
/// <param name="objValue">字符型</param>
/// <param name="defaultValue">无法转换时的默认值</param>
/// <returns>整型值</returns>
public static int IntParse(string objValue, int defaultValue)
{
int returnValue = defaultValue;
if (!string.…
📂 Web编程
👤 博主
📅 2008-03-26
👁 7583
👍 0
阅读全文 →
简介 泛型是 C# 2.0 的最强大的功能。通过泛型可以定义类型安全的数据结构,而无须使用实际的数据类型。这能够显著提高性能并得到更高质量的代码,因为您可以重用数据处理算法,而无须复制类型特定的代码。在概念上,泛型类似于 C++ 模板,但是在实现和功能方面存在明显差异。本文讨论泛型处理的问题空间、它们的实现方式、该编程模型的好处,以及独特的创新(例如,约束、一般方法和委托以及一般继承)。您还将了解在 .NET Framework 的其他领域(例如,反射、数组、集合、序列化和远程处理)中如何利用泛型,以及如何在所提供的基本功能的基础上进行改进。 泛型问题陈述 考虑一种普通的、提供传统 Push() 和 Pop() 方法的数据结构(例如,堆栈)。在开发通用堆栈时,您可能愿意使用它来存储各种类型的实例。在 C# 1.1 下,您必须使用基于 Object 的堆栈,这意味着,在该堆栈中使用的内部数据类型是难以归类的 Object,并且堆栈方法与 Object 交互:…
📂 Web编程
👤 博主
📅 2008-03-26
👁 4154
👍 0
阅读全文 →
MyException.cs(自定义异常类): 异常使用:
📂 Web编程
👤 博主
📅 2008-03-25
👁 11052
👍 0
阅读全文 →
1.HttpHelper类 2.调用示例
📂 Web编程
👤 博主
📅 2008-03-25
👁 10378
👍 0
阅读全文 →
名称 说明 备注 syscolumns 每个表和视图中的每列在表中占一行,存储过程中的每个参数在表中也占一行。 syscomments 包含每个视图、规则、默认值、触发器、CHECK 约束、DEFAULT 约束和存储过程的项。text 列包含原始 SQL 定义语句,其最大大小限制为 4 MB。 不应删除 syscomments 中的项。如果手工删除或修改 syscomments 中的项,则对应的存储过程将不能正常工作。若要隐藏或加密存储过程定义,请使用含有 ENCRYPTION 关键字的 Create PROCEDURE。 sysdepends 包含对象(视图、过程和触发器)与对象定义中包含的对象(表、视图和过程)之间的相关性信息。…
📂 Web编程
👤 博主
📅 2008-03-24
👁 4797
👍 0
阅读全文 →