如何在C#3.0中将int 90转换为DateTime 1:30?
谢谢!!
如何动态更改app.config文件中的connectionString?
我有一个用windows表单编写的应用程序,c#3.0和Linq到Sql.我需要在安装应用程序时更改连接字符串.我怎么做的?
当用户安装程序时,它必须显示一个表单,如果存在,则可以选择更改连接字符串,如果不存在则添加一个.
我在C#中有一个Windows窗体应用程序,我有一个表单,当用户关闭它时,我问,"你想保存更改吗?" 我怎样才能获得表单中的更改?这是一些代码:
public partial class DepartEdit : Form
{
string _nameDep; //This variavel get value textbox when form load
{
InitializeComponent();
}
private void DepartamentEdit_FormClosing(object sender, FormClosingEventArgs e)
{
if (txtNameDepart.Text != _nameDep && codDepartament > 0)//Here i compare
{
DialogResult dlg = MessageBox.Show("Save changes?", "Question", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
saveDepart(); // Metod save depart
e.Cancel = false;
}
if(dlg ==DialogResult.No)
{
e.Cancel = false;
}
}
}
Run Code Online (Sandbox Code Playgroud)
有很多文本框和组合框?有没有其他方法来获取表单中的更改?
我的名字是埃德,我需要你的帮助.在我的经典ASP应用程序中页面加载时发生此错误:
Microsoft VBScript runtime error '800a0009' Subscript out of range: 'cont' /admin/cadastros_apz_material.asp, line 173
相关代码是:
do while not rs.eof
for i = 1 to tpp
if i = 1 then matriz(cont) = Rs("id_material_apv_produto") else matriz(cont) = matriz(cont) & "_" & rs("id_material_apv_produto")
rs.movenext: if rs.eof then exit do
next: cont = cont + 1
loop: set rs = nothing: if cint(pag) = 1 and ubound(matriz) >= 1 then id = matriz(1)
Run Code Online (Sandbox Code Playgroud)
谢谢.