漫漫技术人生路

C#

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

<marquee direction ="up" style="width: 157px" >
                                            <asp:Repeater runat="server" ID="shownamelist" >
                                             <ItemTemplate>
                                            <%#DataBinder.Eval(Container.DataItem,"昵称") %>"你的书已经发出请注意查收"<br />
                                             </ItemTemplate>
                                            </asp:Repeater></marquee>

DataTable newDT = new DataTable("CartTable");
            ds.Tables.Add(newDT);
            DataColumn newDC;
            newDC = new DataColumn("商品ID", System.Type.GetType("System.Int32"));
            ds.Tables["CartTable"].Columns.Add(newDC);
            newDC = new DataColumn("商品名称", System.Type.GetType("System.String"));
            ds.Tables["CartTable"].Columns.Add(newDC);
            newDC = new DataColumn("商品数量", System.Type.GetType("System.Int32"));
            newDC.DefaultValue = 1;
            ds.Tables["CartTable"].Columns.Add(newDC);
            newDC = new DataColumn("单价", System.Type.GetType("System.Double"));
            ds.Tables["CartTable"].Columns.Add(newDC);
            newDC = new DataColumn("小计", System.Type.GetType("System.Double"));
            ds.Tables["CartTable"].Columns.Add(newDC);
            Session["YourCartTable"] = newDT;

string strRnd = "";//随机数字符串
        Random rnd = new Random();//定义产生随机数的类
        strRnd = rnd.Next(1000, 9999).ToString();//产生随机数

 newRow["fileCreater"] = c.fileCreater;
 newRow["lastUpdatePerson"] = c.lastUpdatePerson;
 if (txtKeyWord.Text == "")
 { newRow["keyword"] = "none"; }
 else { newRow["keyword"] = txtKeyWord.Text; }
 if (txtDiscription.Text =="")
 { newRow["fileDiscription"] = "none"; }

int i = fileFullNameFrom.LastIndexOf("\\");
string dirUrlFrom = fileFullNameFrom.Substring(0, i);//路径


DirectoryInfo di = new DirectoryInfo(@"D:\档案管理系统v1");
 c.directoryUrl = @"D:\档案管理系统v1" + "\\" + c.fatherDirectory;
DirectoryInfo dis = new DirectoryInfo(c.directoryUrl);
if (!dis.Exists)
   {
    di.CreateSubdirectory(c.fatherDirectory);

<form id="form1" runat="server" enctype="multipart/form-data">
 <input id="File1" type="file" runat="server" /></td>
string fileFullNameFrom = File1.PostedFile.FileName;//包括路径的名称


 string wantToSave = File1.PostedFile.FileName;
            int i = wantToSave.LastIndexOf("\\");
            string wantToUploadFoldPathFrom = wantToSave.Substring(0, i);//要上传的文件夹所在的路径From
            string foldNameFrom = "";
 try
            {
                char[] spliter = { '\\' };
                string[] FileName = File1.PostedFile.FileName.Split(spliter, 10);
                foldNameFrom = FileName[FileName.Length - 2];
            }
            catch
            {
                return;
            }
<system.web>
 <globalization
     requestEncoding="GB2312"
     responseEncoding="GB2312"
    />
    <httpRuntime maxRequestLength="2048576" useFullyQualifiedRedirectUrl="true"  executionTimeout="3600" />
 </system.web>

posted on 2006-10-06 17:37  javaca88  阅读(133)  评论(0编辑  收藏  举报