我正在加入多个表,我希望根据以下内容将一个列值放入行中TechnicianName:
我有4个表easy_tbljobcard,easy_tbltechnician并easy_tblproblem和easy_tbltechnicianMaster
我得到TechnicianName第2列从easy_tbltechnicianMaster 哪里technicianId存在easy_tbltechnician
我想STUFF在我的查询中的第3列(p.ProblemReported)
当前的SQL语句:
SELECT j.CardID,
, (SELECT TechnicianName FROM easy_tbltechnicianMaster WHERE TechnicianID = t.technicianID) AS TechnicianName
, p.ProblemReported
FROM easy_tbljobcard AS j
JOIN easy_technician AS t ON t.CardID = j.CardID
LEFT JOIN easy_tblproblem AS p ON p.CardID = t.CardID
Run Code Online (Sandbox Code Playgroud)
查询结果:
???????????????????????????????????????????????????
? CardID ? TechnicianName ? ProblemReported ?
???????????????????????????????????????????????????
? 1 ? AKBAR ? PROBLEM A ?
? …Run Code Online (Sandbox Code Playgroud) sql t-sql sql-server sql-server-2008 sql-server-group-concat
在我的C#项目中,我收到此错误,计数的定义不包含 System.Array
protected void Page_Prerender(object sender, EventArgs e)
{
FileInfo[] fileInfo;
string UpFolder = Server.MapPath("~/data/images/");
DirectoryInfo dir = new DirectoryInfo(UpFolder);
fileInfo = dir.GetFiles();
// here i am getting error
int TotalImages = fileInfo.Count();
for (int count = 0; count < TotalImages; count++)
{
Image image = new Image();
image.ImageUrl = "~/data/images/" + fileInfo[count].ToString();
image.ID = count.ToString();
DataListImage.Controls.Add(image);
}
DataListImage.DataSource = dir.GetFiles();
DataListImage.DataBind();
string UpFolder1 = Server.MapPath("~/data/thumbnails/");
DirectoryInfo dir1 = new DirectoryInfo(UpFolder1);
DataListthumbnails.DataSource = dir1.GetFiles();
DataListthumbnails.DataBind();
}
Run Code Online (Sandbox Code Playgroud) 在jquery对话框中,我只允许在对话框中只有一个按钮.我想在这个对话框中有两个单独的按钮
脚本
<script type="text/javascript">
$("[id*=btnclosejob]").live("click", function() {
$("#dialog").dialog({
title: "Job Close?",
buttons: {
Close: function() {
$(this).dialog('close');
}
}
});
return false;
});
</script>
Run Code Online (Sandbox Code Playgroud)
HTML
<asp:Button ID="btnclosejob" runat="server" Text="Close Job" />
<div id="dialog" style="display: none">
Are You Sure You Want to Close this job
</div>
Run Code Online (Sandbox Code Playgroud)
Result (只用一个按钮"关闭",但我想要两个单独的按钮1st表示动作,第二个表示关闭dailog)

当我点击确定按钮时,它应该重定向到其他页面
我有字符串,例如.,,,, ABC
TextBox box2 = (TextBox)GV_Assoceries.Rows[rowIndex].Cells[2].FindControl("TextBox2");
box2.text;
Run Code Online (Sandbox Code Playgroud)
基本上我正在通过onclick事件创建一个新的gridview行,并在每个新行添加时设置gridview行的先前数据,然后它将设置上一行的先前数据,但不知道为什么我在获取逗号每一串......
box2.text有一个值",,,,, abc",我想从字符串中只删除逗号,我不希望任何循环来执行此操作.
是否有任何函数或方法从字符串中删除特定字符