没有合适的资源?快使用搜索试试~ 我知道了~
FTP下载和几个实用的方法
需积分: 16 44 浏览量
2009-05-06
18:38:57
上传
评论
收藏 2KB TXT 举报
温馨提示
FTP下载和几个实用的方法,大家可以下载看看。不会骗你的分。
资源推荐
资源详情
资源评论





















string []s=new string[]{"1","2"}
var i=s.select(str=>Int.Prase(str)).toarray();
int[] lowerBounds={1};
int[] lengths={100};
int[] array=(int[])Array.CreateInstance(typeof(int),lengths,lowerBounds);
创建了长度100,下标从1开始的数组!
在A页面设置比如Botton,ImageBotton,LinkBotton的 PostBackUrl属性为 B.aspx,这样的方式也可以取出A页面的信息
if(PreviousPage.IsCrossPagePostBack == true) {
string info= ((TextBox)this.PreviousPage.FindControl("控件的ID,比如一个TextBox")).Text;
}
或者可以是
string info=Reques.Form["TextBox1"].ToString();
String XmlFilePath = Server.MapPath("~/info/consultative.xml");
FileStream fs = new FileStream(XmlFilePath, FileMode.Open, FileAccess.ReadWrite);
XmlDocument doc1 = new XmlDocument();
doc1.Load(fs);
fs.Close();
XmlNodeList nodeList = doc.SelectNodes("consultative/info");
foreach (XmlNode node in nodeList)
{
foreach (XmlNode nodeChild in node.ChildNodes)
{
if (nodeChild.Name == "uuid" && nodeChild.InnerText != ViewState["uuid"].ToString())
var i=s.select(str=>Int.Prase(str)).toarray();
int[] lowerBounds={1};
int[] lengths={100};
int[] array=(int[])Array.CreateInstance(typeof(int),lengths,lowerBounds);
创建了长度100,下标从1开始的数组!
在A页面设置比如Botton,ImageBotton,LinkBotton的 PostBackUrl属性为 B.aspx,这样的方式也可以取出A页面的信息
if(PreviousPage.IsCrossPagePostBack == true) {
string info= ((TextBox)this.PreviousPage.FindControl("控件的ID,比如一个TextBox")).Text;
}
或者可以是
string info=Reques.Form["TextBox1"].ToString();
String XmlFilePath = Server.MapPath("~/info/consultative.xml");
FileStream fs = new FileStream(XmlFilePath, FileMode.Open, FileAccess.ReadWrite);
XmlDocument doc1 = new XmlDocument();
doc1.Load(fs);
fs.Close();
XmlNodeList nodeList = doc.SelectNodes("consultative/info");
foreach (XmlNode node in nodeList)
{
foreach (XmlNode nodeChild in node.ChildNodes)
{
if (nodeChild.Name == "uuid" && nodeChild.InnerText != ViewState["uuid"].ToString())
资源评论


zj_2009
- 粉丝: 19
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
