hresodota是什么意思思

本人在写一个文档上传的程序,可是当有multiplayer在同时上传的时候,他们上传文件成功后的页面会是一样的,就是那个GridView1的绑定的数据和所在的路径会是一样,这说明他们的参数是一样的,为什么会这样,我用的是不同的用户登入的,private&static&string&where&=&"0";&文件類別private&static&string&dep="0"&部門代號protected&void&Gvbind(string&str,string&dep)&綁定數據的方法{string&sql&=&"SELECT&TK.*,US.US004&FROM&OEMTK&TK&"+&"&LEFT&JOIN&OEMUS&US&ON&US.US001=TK.TK011"+&"&WHERE&TK.TK004='"+dep+"'&AND&TK.TK005='"+str+"'";DataTable&dt&=&new&DataTable();dt&=&DB.SQLDB.GetDataTable(sql);GridView1.DataSource&=&GridView1.DataBind();spath.InnerHtml&=&"當位位置:&font&color=\"Blue\"&"&+&GetDocCode(str)&+&"&/font&";doccount.InnerText&=&dt.Rows.Count.ToString();}protected&void&TreeView1_SelectedNodeChanged(object&sender,&EventArgs&e)&//點樹聯接獲得&文件類{where&=&TreeView1.SelectedValue.ToString().Trim();HiddenField1.Value&=&Gvbind(where,&deptid);}protected&void&Button1_Click(object&sender,&EventArgs&e)&//上傳文件的方法{if&(HiddenField1.Value.ToString().Trim()!=""){if&(FileUpload1.HasFile){DataTable&dt&=&new&DataTable();dt&=&DB.SQLDB.GetDataTable("SELECT&*&FROM&OEMTC&WHERE&TC001='"&+&HiddenField1.Value.ToString().Trim()&+&"'");if&(dt.Rows.Count&&&0){string&path&=&dt.Rows[0]["TC006"].ToString().Trim();string&filename&=&FileUpload1.FileName.ToString();&//原文件名string&type2&=&filename.Substring(filename.LastIndexOf(".")&+&1);string&size&=&FileUpload1.PostedFile.ContentLength.ToString();&//文大小type2&=&type2.ToLower();//類型string&fileID&=&DateTime.Now.ToString("yyyyMMddHHmmssfff");&//數據庫id值string&newName&=&fileID&+&"."&+&type2;//系統文件名path&=&path&+&"\\"&+&newN&//上傳路徑string&tk002="";if&(TextBox1.Text.Trim()&!=&"")tk002&=&TextBox1.Text.Trim();//文件顯示名稱elsetk002&=&filename.Remove(filename.LastIndexOf("."),&filename.Length&-&filename.LastIndexOf("."));string&tk014&=&TextBox2.Text.Trim();//文件用途說明string&tk005&=&HiddenField1.Value.ToString().Trim();//所屬類string&tk004&=&dt.Rows[0]["TC003"].ToString().Trim();try{FileUpload1.SaveAs(path);DB.SQLDB.ExecuteCmd(string.Format("INSERT&INTO&OEMTK&VALUES('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}',{11},'{12}','{13}')",&fileID,&tk002,&"0",&tk004,&tk005,&path,&System.DateTime.Now.ToString("yyyy/MM/dd&hh:mm:ss"),"",&"0",&type2,&Session["UserID"].ToString(),&size,&newName,&tk014));Gvbind(where,&deptid);MS.InnerHtml&=&string.Format("&dir&style=\"color:G&float:&text-align:\"&"+&"您,文件已成功上傳!&br/&&img&src=\"../images/file/{0}.gif\"&alt=\"文件類型\"&style=\"vertical-align:&border-style:\"/&&-&"&+&tk002&+&"&br/&"+&"大小:"&+&size&+&"&br/&存放位置:"&+&path&+&"&br/&&&/div&",&type2);}catch&(Exception&ex){MS.InnerHtml&=&string.Format("&dir&style=\"color:R&float:&text-align:\"&"+&"很遺憾,您的文件上傳失敗!&br/&&img&src=\"../images/file/{0}.gif\"&alt=\"文件類型\"&style=\"vertical-align:&border-style:\"/&&-&"&+&tk002&+&"&br/&"+&"大小:"&+&size&+&"&br/&存放位置:"&+&path&+&"&br/&&/div&",&type2);}}}else{MS.InnerHtml&=&"&dir&style=\"color:R&float:&text-align:\"&非常地遺憾,系統未找到您需要上傳的文件&/div&";}}elseClientScript.RegisterStartupScript(this.GetType(),&"aa",&"&script&type='text/javascript'&alert('請選擇好類別後再進行上傳');&/script&");}
本文地址 :CodeGo.net/1445920/
-------------------------------------------------------------------------------------------------------------------------
1.private&static&string&where&=&"0";&文件類別private&static&string&dep="0"&部門代號静态变量是共用同一块内存,建议你将这段程序修改一下,将数据库的操作封装在一个类中,并设置类的属性private&string&where&{&&}private&string&dep&{&}public&class(){//类构造函数where&=&"0"dep&=&"0"}然后在上传的时候,为每一个用户新申一个对象class&one&=&new&class()one.where&=&"配一个"one.dep&=&"配一个"你如果不想改现在的程序,就把private&static&去掉,把这两个参数的生命周期规定在该页面内就行。
静态变量就是一个类的所有实例的公共区域 CodeGo.net,对于同一个类来讲,不管什么用户,只要修改这个页面的某个静态变量,会影响到其它用户
如果要对不同用户作不同的处理,需要使用Session或者Cookie。
本文标题 :netmultiplayer使用时查询参数变成一至的
本文地址 :CodeGo.net/1445920/
Copyright (C) 2014 CodeGo.net 沪ICP备号 联&系& c&o&d&e&g&o &@&1&2&6&.&c&o&mLog In to Your Free Account
&&Remember me
Use this tool by signing up for a Free Account.
Sign Up For Free
Join the Member Site
This document is available on the Member Site.
Download this document, along with 48,000 more activities on the Member Site.
Join the Member Site
If you're not ready to join the Member Site, sign up for a Free Account to access thousands of free teaching activities.
Join the Free Site
You have a free account. This document is only available on the Member Site.
Download this document, along with 48,000 more activities on the Member Site.
Join the Member Site
Member documents are indicated with the
icon. Any document without this icon is included with your free account.
Sign Up for an
Free Account
First Name:
Last Name:
Teacher Type:
Select (Optional)
Teacher, Public\nTeacher, Private\nHomeschooler\nAdministrator\nParent\nLibrarian or Media Specialist\nStudent\nUniversity Professor\nESL Instructor\nMontessori\nSpecial Education\nOther\n
Student Age:
Free Account
• Thousands of free teaching activities
• 15 sample abctools for creating custom documents
• Extensive clip art library
• Free monthly newsletter
• Membership information and discounts
I agree with the .
Learn about special member discounts and features.
We don't spam and we'll never share your email address.
You already have an abcteach free account.
Please try
or sending yourself a .
You already have an abcteach member account.
Please try
or sending yourself a .
Sign Up For Free
Log In to the abcteach Free Site
&&Remember me
Sign Up for an
Free Account
First Name:
Last Name:
Teacher Type:
Select (Optional)
Teacher, Public\nTeacher, Private\nHomeschooler\nAdministrator\nParent\nLibrarian or Media Specialist\nStudent\nUniversity Professor\nESL Instructor\nMontessori\nSpecial Education\nOther\n
Student Age:
Free Account
• Thousands of free teaching activities
• 15 sample abctools for creating custom documents
• Extensive clip art library
• Free monthly newsletter
• Membership information and discounts
I agree with the .
Learn about special member discounts and features.
We don't spam and we'll never share your email address.
You already have an abcteach free account.
Please try
or sending yourself a .
You already have an abcteach member account.
Please try
or sending yourself a .
Sign Up For Free
You are an abcteach Member, but you are logged in to the Free Site. To access all member features, .
Log in successful.
You have been logged out.
Free Account ()
Core Subjects
Highlighted Categories
abcteach - All Rights Reserved
Hotchalk Glam Partnerdutch96.pat
% PURPOSE: 8-bit hyphenation patterns for TeX based upon the new Dutch
spelling, officially since 1 August 1996. These patterns follow
the new hyphenation rules in the `Woordenlijst Nederlandse
Taal, SDU Uitgevers, Den Haag 1995' (the so called `Groene
Boekje') described in section 5.2 (Het afbreekteken).
The main differences with our earlier patterns based upon the
CELEX dictionary are:
(1) provide 8-bit patterns based upon the T1 character encoding
(the encoding for DC/EC compatible TeX fonts)
(2) don't hyphenate if this results in a syllable of one letter
before or after the hyphen (hence hyphens in a-drenaline,
studi-o, mensa-pen and vide-oachtig are invalid)
(3) handle words derived from other languages (`bastaard
woorden') according to the new rules
Like the CELEX patterns these patterns don't hyphenate:
(4) in a changing syllable (menuutje can not be hyphenated as
(5) in words that have different hyphenations according to
there meaning (buur-tje/buurt-je)
% COPYRIGHT (C) 1996: Piet Tutelaers
% -----------------------------------------------------------------
% IMPORTANT NOTICE:
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl. either
% version 1 of the License, or any later version.
% -----------------------------------------------------------------
% VERSION: 1.1 (November 1996) Copyright changed March 2000
Piet Tutelaers P.T.H.Tutelaers@tue.nl
% Define lefthyphenmin and righthyphenmin to two
\lefthyphenmin=2 \righthyphenmin=2
% Define for all Dutch ISO Latin1 characters used in the patterns and
% exceptions proper lowercase and uppercase codes.
% ^^c4 (A-umlaut) ^^e4 (a-umlaut)
\catcode`\^^e4=11\uccode`\^^e4=`\^^c4\lccode`\^^e4=`\^^e4
% ^^c7 (C-cedille) ^^e7 (c-cedille)
\catcode`\^^e7=11\uccode`\^^e7=`\^^c7\lccode`\^^e7=`\^^e7
% ^^c8 (E-grave) ^^e8 (e-grave)
\catcode`\^^e8=11\uccode`\^^e8=`\^^c8\lccode`\^^e8=`\^^e8
% ^^c9 (E-aigu) ^^e9 (e-aigu)
\catcode`\^^e9=11\uccode`\^^e9=`\^^c9\lccode`\^^e9=`\^^e9
% ^^ca (E-circumflex) ^^ea (e-circumflex)
\catcode`\^^ea=11\uccode`\^^ea=`\^^ca\lccode`\^^ea=`\^^ea
% ^^cb (E-umlaut) ^^eb (e-umlaut)
\catcode`\^^eb=11\uccode`\^^eb=`\^^cb\lccode`\^^eb=`\^^eb
% ^^cf (I-umlaut) ^^ef (i-umlaut)
\catcode`\^^ef=11\uccode`\^^ef=`\^^cf\lccode`\^^ef=`\^^ef
% ^^ce (I-circumflex) ^^ee (i-circumflex)
\catcode`\^^ee=11\uccode`\^^ee=`\^^ce\lccode`\^^ee=`\^^ee
% ^^d1 (N-tilde) ^^f1 (n-tilde)
\catcode`\^^f1=11\uccode`\^^f1=`\^^d1\lccode`\^^f1=`\^^f1
% ^^d6 (O-umlaut) ^^f6 (o-umlaut)
\catcode`\^^f6=11\uccode`\^^f6=`\^^d6\lccode`\^^f6=`\^^f6
% ^^dc (U-umlaut) ^^fc (u-umlaut)
\catcode`\^^fc=11\uccode`\^^fc=`\^^dc\lccode`\^^fc=`\^^fc
% ^^db (U-circumflex) ^^fb (u-circumflex)
\catcode`\^^fb=11\uccode`\^^fb=`\^^db\lccode`\^^fb=`\^^fb
\catcode`\'=12\lccode`\'=`\'
\patterns{
^^efe5nen.
o5stero^^ef
% Exception list
\hyphenation{
aan-dachts-trek-ker
aan-dachts-trek-kers
acht-en-der
acht-en-ders
acht-en-der-tig
acht-en-der-tig-ste
be-heers-ta-ken
be-scherm-en-gel
be-scherm-en-ge-len
be-stuurs-la-gen
be-stuurs-ta-ken
bij-stands-trek-ker
bij-stands-trek-kers
bui-ten-an-ten-ne
bui-ten-an-ten-nes
don-der-aal
han-dels-taal
ket-ting-ste-ken
lands-taal
mi-nis-ters-por-te-feuil-le
mi-nis-ters-por-te-feuil-les
ont-hoof-din-gen
pa-ling-ste-ken
rechts-taal
schil-ders-ta-lent
sou-ve-niertje
sou-ve-niertjes
spie-gel-ei
ver-en-gels-te
ver-hol-lands-te
ver-in-lands-te
ver-kinds-te
ver-ne-der-lands-te
ver-rechts-te
ver-steeds-te
wa-ter-staats-in-ge-ni-eur
wa-ter-staats-in-ge-ni-eurs
% The following words were not properly hyphenated.
% aan*dacht.s*trek*ker
% aan*dacht.s*trek*kers
% ach.t*en*der
% ach.t*en*ders
% ach.t*en*der*tig
% ach.t*en*der*tig*ste
% be*heer.s*ta*ken
% be*scher.m*en*gel
% be*scher.m*en*ge*len
% be*stuur.s*la*gen
% be*stuur.s*ta*ken
% bij*ge*plaats-te
% bij*plaats-te
% bij*stand.s*trek*ker
% bij*stand.s*trek*kers
% bui*te.n*an*ten*ne
% bui*te.n*an*ten*nes
% di-a*ken
% di-a*kens
% don*de.r*aal
% ge*plaats-te
% han*del.s*taal
% he.r*e*nen
% her*plaats-te
% ho*ger*ge*plaats-te
% hoog*ge*plaats-te
% hoogst*ge*plaats-te
% ket*ting*s.te*ken
% laag*ge*plaats-te
% land.s*taal
% mee.st*al
% mi*nis*ter.s*por*te*feuil*le
% mi*nis*ter.s*por*te*feuil*les
% mis*plaats-te
% on*ge*plaats-te
% ont*hoof*d.in*gen
% ont*pers-te
% op*ge*plaats-te
% over*ge*plaats-te
% over*plaats-te
% pa*ling*s.te*ken
% plaats-te
% recht.s*taal
% schil*der.s*ta*lent
% sou*ve*nier.tje
% sou*ve*nier.tjes
% spie*ge.l*ei
% spits-te
% sub*a-to*mai*re
% te*rug*ge*plaats-te
% trans*o-ce*a*ni*sche
% ver*en*gel.s*te
% ver*hol*land.s*te
% ver*in*land.s*te
% ver*kind.s*te
% ver*ne*der*land.s*te
% ver*plaats-te
% ver*recht.s-te
% ver*steed.s*te
% voort-re*de*ne*ren
% wal.s*te
% wa*ter*staat.s*in*ge*ni*eur
% wa*ter*staat.s*in*ge*ni*eurs无法打开resource.h
[问题点数:20分,结帖人cm]
无法打开resource.h
[问题点数:20分,结帖人cm]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2008年1月 C/C++大版内专家分月排行榜第二
2002年12月 C/C++大版内专家分月排行榜第二
本帖子已过去太久远了,不再提供回复功能。Hreso是什么意思_百度知道
Hreso是什么意思
提问者采纳
一般用于人的名字(the last name ),多见于美国等国家。
提问者评价
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 dota是什么意思 的文章

 

随机推荐