我有一个函数,它运行以将文件名和部件号插入表中.但是插入的文件名包括整个目录,例如c:\:folder\uploads\xml\file.xml
我想只是file.xml
string source = System.Web.HttpContext.Current.Server.MapPath("/uploads/xml/");
part retrun = null;
string[] fileEntries = Directory.GetFiles(source);
foreach (string fileName in fileEntries)
{
XmlSerializer serializer = new XmlSerializer(typeof(file));
Stream reader = new FileStream(fileName, FileMode.Open);
file f = (file)serializer.Deserialize(reader);
string part = "";
foreach (part p in f.@class.part)
{
part = p.tcpn.ToString();
XMLProductQueries.InsertIntoXMLProducts(context, fileName, part);
}
reader.Close();
}
Run Code Online (Sandbox Code Playgroud)
救命?
我希望我的卷轴具有透明背景,因为卷轴是一个轻微的白色短划线,顶部有向上箭头和向下箭头......这就是我现在定制的方式.它给了我一个灰色的长卷轴...但我不知道要编辑什么来改变它?
::-webkit-scrollbar {
width: 10px;
height: 6px;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
height: 30px;
display: block;
background-color: transparent;
}
::-webkit-scrollbar-track-piece {
background-color: transparent;
-webkit-border-radius: 6px;
}
::-webkit-scrollbar-thumb:vertical {
height: 50px;
background-color: #666;
-webkit-border-radius: 6px;
}
::-webkit-scrollbar-thumb:horizontal {
width: 50px;
background-color: #666;
-webkit-border-radius: 3px;
}
Run Code Online (Sandbox Code Playgroud) ListView menuList = (ListView) findViewById(R.id.ListView_Menu);
String[] items = {getResources().getString(R.string.menu_item_NxtInc)};
ArrayAdapter<String> adapt = new ArrayAdapter<String>(this,R.layout.menu_item,items);
menuList.setAdapter(adapt);
menuList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View itemClicked, int position, long id) {
TextView textView = (TextView) itemClicked;
String strText = textView.getText().toString();
if (strText.equalsIgnoreCase(getResources().getString(R.string.menu_item_NxtInc))) {
startActivity(new Intent(EndActivity.this, NxtIncActivity.class));
EndActivity.this.finish();
}
Run Code Online (Sandbox Code Playgroud)
我已经使用上面的代码在我的应用程序中创建了一个菜单.如果用户单击字符串menu_item_NxtInc,则会将它们带到下一个活动.我想要发生的是提示出来说你确定要这么做吗?任何人都知道如何实现这一点.谢谢
我从未使用过J Query ....想知道链接是什么..
http://jqueryui.com/latest/themes/base/ui.all.css
链接到?我接手的其中一个网站已停止工作.当我把这个来源放在页面的顶部时它可以工作,当我把它放回停止再次工作时?
现在我已经把它拿出来,但我认为jquery服务器已经关闭或者其他什么.这个消息来源做了什么,是否可以将其删除?谢谢
我有一个文本框,里面我希望它自动完成.自动完成的数据将通过数据库给出.
这是我的Jquery:
var data = "autocompletetagdata.aspx"
$("#item").autocomplete({
source: data
});
protected void Page_Load(object sender, EventArgs e) {
return "['word', 'hello', 'work', 'oi', 'hey']";
}
Run Code Online (Sandbox Code Playgroud) SQL:
dim sql
sSql = "SELECT * FROM [dbo].[table] WHERE [sent] = 1 and datesent between '" & dStartDate & "' and '" & dFinishDate & "'"
response.write(sSql)
set oRs = oConn.execute(sSql)
Run Code Online (Sandbox Code Playgroud)
当我在sql server 2008中执行此sql时,它工作正常.但是,当我在我的应用程序中执行它时,我得到错误:
Microsoft OLE DB Provider for SQL Server error '80040e07'
The conversion of a char data type to a datetime data type resulted
in an out-of-range datetime value.
Run Code Online (Sandbox Code Playgroud)
我在应用程序中有什么不同的东西吗?谢谢
当我将鼠标悬停在链接上时,如何使子菜单消失并出现?
这是我的菜单:
<div class="sideMenu2">
<ul>
<li><a href>retail</a>
<ul class="subsideMenu2">
<li>cabot circus</li>
<li>st. stephen's</li>
<li>silverburn</li>
<li>braehead</li>
</ul>
</li>
<li><a href>sports & leisure</a>
<ul class="subsideMenu2">
</ul>
</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
这是我目前的css:
.sideMenu2 ul li.on a
{
height:2em;
padding-top: 2px;
background:url(../images/point.png) no-repeat;
font-weight:bold;
}
.sideMenu2 ul
{
padding: 15px 0px 0px 0px;
list-style-type:none;
font-size:0.9em;
width:20em;
color:#fff;
margin-left:-10px;
}
.sideMenu2 ul a{
padding: 2px 20px 0px 0px;
color:#fff;
text-decoration:none;
float:left;
width:19.2em;
}
.sideMenu2 li a
{
height:2em;
padding-top: 1px;
padding-left:15px;
}
.sideMenu2 li a:hover{
background:url(../images/point.png) …Run Code Online (Sandbox Code Playgroud) 我想要做的是找到一个<li>包含人物然后用人和图像替换的词?
这是当前的HTML
<div class="subMenu">
<ul>
<li class="">
<span>
<a href="/sally">People</a>
</span>
</li>
<li class="">
<span>
<a href="/working-us">Working with us</a>
</span>
</li>
<li class="">
<span>
<a href="/delegate">Delegate Resource</a>
</span>
</li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
我想用' People <img src="/Img/banner.png" alt="">' 替换文本'People '
可以这样做吗?
jquery ×3
css ×2
android ×1
asp-classic ×1
asp.net ×1
autocomplete ×1
c# ×1
dialog ×1
directory ×1
filenames ×1
prompt ×1
scrollbar ×1
sql ×1
sql-server ×1