asp.net中substring用法
	
    
    
	
substring
public String substring(int beginIndex)返回一个新的字符串,它是此字符串的一个子字符串。该子字符串始于指定索引处的字符,一直到此字符串末尾。
例如: 
"unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)
参数:
beginIndex - 开始处的索引(包括)。 
返回:
指定的子字符串。 
抛出: 
IndexOutOfBoundsException - 如果 beginIndex 为负或大于此 String 对象的长度。
--------------------------------------------------------------------------------
substring
public String substring(int beginIndex,
int endIndex)返回一个新字符串,它是此字符串的一个子字符串。该子字符串从指定的 beginIndex 处开始,一直到索引 endIndex - 1 处的字符。因此,该子字符串的长度为 endIndex-beginIndex。 
示例: 
"hamburger".substring(4, 8) returns "urge"
"smiles".substring(1, 5) returns "mile"
参数:
beginIndex - 开始处的索引(包括)。
endIndex - 结束处的索引(不包括)。 
返回:
指定的子字符串。 
抛出: 
IndexOutOfBoundsException - 如果 beginIndex 为负,或 endIndex 大于此 String 对象的长度,或 beginIndex 大于 endIndex。
C#中 substring() 有两个重载函数
substring(int a) 用法同上
substring(int a,int b) b参数应该为截取后的字符串长度 
上面string得用法不知是针对哪种语法
针对的是c#
    
     
	
	
    
    
	相关文档:
        
    
    //private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//数据库地址  
private string datapatch = "db/global.asa";//数据库地址  
///  
/// 取得dataset  
//  
/// 查询语句  
///  
public DataSet GetDataSet(string Commandtext)  
{&nbs ......
	
    
        
    
    ASP.NET 应用程序必须位于 IIS 虚拟目录(也称为应用程序根目录)中。ASP.NET 应用程序可包含已编译的程序集(通常是包含业务逻辑的 DLL 文件)、用于存储预编译代码的已知目录(目录名总是 \Bin)、存储在基于文本的、易读的 Web.config 文件中的配置设置、页、服务器控件,以及 XML Web 服务。
服务器中任何不与其他应用 ......
	
    
        
    
    以下类容为转载,但是不知道是什么原因,经本人测试这个方法有一个bug,按照以下类容所设计的角色验证不能成功。Application_AuthorizeRequest事件改为Application_AuthenticateRequest事件才能实现。
Asp.net的身份验证有有三种,分别是"Windows | Forms | Passport",其中又以Forms验证用的最多,也最灵活。
Forms 验证 ......
	
    
        
    
     a.aspx
//显示某个订单的详细信息,通过一个模态对话框,而且屏幕会变颜色
        function ShowOrderDetails(orderId) {
            var url = "AddMenu.aspx?ID=" + orderId; 
     &n ......
	
    
        
    
    public class PageBase:System.Web.UI.Page
{
 public PageBase()
 {
  //
  // TODO: Add constructor logic here
  //
 }
    protected override void InitializeCulture()
    {
        // ......