我正在使用SQL Server 2000数据库,该数据库可能有几十个不再访问的表.我想清除我们不再需要维护的数据,但我不确定如何识别要删除的表.
数据库由几个不同的应用程序共享,因此我无法100%确信审阅这些应用程序将为我提供所使用对象的完整列表.
如果可能的话,我想做的是获取一段时间内根本没有访问过的表的列表.没有读,没有写.我该怎么做呢?
我有一个ASP.NET用户控件,其中包含一个文本框控件和一个按钮控件.此用户控件将多次添加到我的网页中.我需要有一段JavaScript,只要文本框改变就会运行,如果文本框的值无效,则禁用该按钮.我的问题是:如何将JavaScript放在只能引用同一用户控件中的按钮的文本框中?请记住,有许多ASP.NET用户控件,每个控件都有一个按钮和一个文本框,我只希望文本框中的无效值影响一个关联的按钮.谢谢!
我正在开发一个程序,它将根据代码完成第2版中的32个主题,告诉程序员在初级,中级或专家级别.我正在使用32个复选框和一个方法来判断哪些被点击.问题是当我检查check复选框属性是否等于true时,它会在复选框实际检查之前得到结果.这是我的所有源代码(到目前为止):
public partial class Main : Form
{
private int baseScore = 0;
public Main()
{
InitializeComponent();
}
private void buttonCalculateScore_Click(object sender, EventArgs e)
{
DetermineLevelOfProgrammer();
}
private void DetermineLevelOfProgrammer()
{
if ((baseScore >= 0) || (baseScore <= 14))
{
labelYourScore.Text += " " + baseScore.ToString();
labelDescription.Text = "You are a beginning programmer, probably in your first year of computer \n"+
"science in school or teaching yourself your first programming language. ";
}
// Do the other checks here!
} …
Run Code Online (Sandbox Code Playgroud) 我有一个像这样的数组:
string[] parts = line.Split(',');
string store = parts[0];
string sku = parts[1];
string subcatcode = parts[2];
string price = parts[3];
string date = parts[4];
string desc = parts[5];
Run Code Online (Sandbox Code Playgroud)
我希望描述等于索引为5或更高的所有部分的连接值.这有用还是有更好的方法呢?
string desc = string.Join(",", parts.Skip(5).ToArray());
Run Code Online (Sandbox Code Playgroud)
问题是我正在解析的CSV的最后一部分可以包含逗号(部分0-4保证不会).
我想知道在运行时添加ViewUserControl(到ViewPage)是否存在任何已知问题.如果我以声明方式添加控件,它可以正常工作,但如果我以编程方式添加控件(在本例中的代码隐藏文件中)则不行.我没有得到错误,它只是没有呈现控件,但单步执行调试器确实确认正在调用页面生命周期中的相关方法.
我确实意识到在ASP.NET MVC中使用代码隐藏文件不太合适,但我确实有理由这样做.
我是javascript的新手,但我正在尝试制作一个复选框,将billto信息复制到shipto框中.我有一个onclick事件的复选框,设置如下:
<input type="checkbox" name="chkSame" id="chkSame" onClick="fncCheckbox()"/> same as customer info<br/>
Run Code Online (Sandbox Code Playgroud)
但是,我在以下函数的Else行中得到了"Expected';'"的错误.如果我完全取出IF语句,它就有效.它可以工作,如果我只是摆脱ELSE或我离开ELSE为1行并摆脱{}括号.它在我在测试页面上设置非常相似的东西时起作用.我不知道为什么它在这种情况下不起作用.功能如下:
<script type="text/javascript">
function fncCheckbox()
{
if (document.RepairRequestform.chkSame.checked) {
document.RepairRequestform.txtShipName.value = document.RepairRequestform.txtBillName.value;
document.RepairRequestform.txtShipCompany.value = document.RepairRequestform.txtBillCompany.value;
document.RepairRequestform.txtShipAddress.value = document.RepairRequestform.txtBillAddress.value;
document.RepairRequestform.txtShipAddress2.value = document.RepairRequestform.txtBillAddress2.value;
document.RepairRequestform.txtShipCity.value = document.RepairRequestform.txtBillCity.value;
document.RepairRequestform.txtShipState.value = document.RepairRequestform.txtBillState.value;
document.RepairRequestform.txtShipZip.value = document.RepairRequestform.txtBillZip.value;
} Else {
document.RepairRequestform.txtShipName.value = "";
document.RepairRequestform.txtShipCompany.value = "";
document.RepairRequestform.txtShipAddress.value = "";
document.RepairRequestform.txtShipAddress2.value = "";
document.RepairRequestform.txtShipCity.value = "";
document.RepairRequestform.txtShipState.value = "";
document.RepairRequestform.txtShipZip.value = "";
}
}
</script>
Run Code Online (Sandbox Code Playgroud) 您使用哪些版本控制系统来管理使用Visual Studio(2005)开发的项目?你会推荐什么?为什么?您的顶级版本控制系统有哪些限制?
我打算在Windows XP机器上编写一个aspx页面.我启用了IIS 7.0并设置了虚拟目录.在Win XP上是否允许aspx页面开发?
我有这个代码..
Models.Person p = new testmvc.Models.Person { Firstname = "yongeks", Lastname = "ucab" };
Models.Person p2 = new testmvc.Models.Person { Firstname = "lyn", Lastname = "torreon" };
string q = JavaScriptConvert.SerializeObject(new String[] { JavaScriptConvert.SerializeObject(p), JavaScriptConvert.SerializeObject(p2) });
Console.WriteLine(q);
return q;
Run Code Online (Sandbox Code Playgroud)
我需要将此代码解析为jquery ..使用json请求..可以有人帮助我..
javascript ×3
asp.net ×2
asp.net-mvc ×2
c# ×2
arrays ×1
checkbox ×1
database ×1
events ×1
if-statement ×1
json ×1
linq ×1
onclick ×1
sql ×1
winforms ×1