我在这里看到了很多关于这个问题的话题,但是他们都没有伤心地帮助我:( 在我的情况下,不只是“x”缺少,而是整个按钮,我不知道为什么以及如何解决这个问题。
提前致谢:)
这是我的代码: HTML:
protected void btnSubmit_Click(object sender, EventArgs e)
{
string constr = ConfigurationManager.ConnectionStrings["DBConnectionString"].ConnectionString;
using (SqlConnection con = new SqlConnection(constr))
{
using (SqlCommand cmd = new SqlCommand(@"select DB_monitor.name,
DB_monitor.priority, DB_alert.creationtime, DB_message.message from DB_alert
INNER JOIN DB_monitor on DB_alert.monitor = DB_monitor.ID
INNER JOIN DB_message on DB_alert.errmess = DB_message.ID
where DB_monitor.application = @strApplication and DB_monitor.instance =
@strInstances and DB_monitor.priority = @Priority and
DB_alert.creationtime between @FromDate and @ToDate and DB_alert.errmess != '1'"))
{
cmd.Parameters.Add("@strApplication", System.Data.SqlDbType.VarChar);// Set SqlDbType based on your DB column Data-Type
cmd.Parameters.Add("@strInstances", System.Data.SqlDbType.VarChar);
cmd.Parameters.Add("@Priority", System.Data.SqlDbType.Int);
cmd.Parameters.Add("@FromDate", System.Data.SqlDbType.DateTime);
cmd.Parameters.Add("@ToDate", System.Data.SqlDbType.DateTime);
cmd.Parameters["@strApplication"].Value = ddlApplication.SelectedValue;
cmd.Parameters["@strInstances"].Value = ddlInstances.SelectedValue;
cmd.Parameters["@Priority"].Value = ddlPriority.SelectedValue;
//2017-04-01 00:00:00.000
cmd.Parameters["@FromDate"].Value = Calendar1.SelectedDate.ToString("yyyy-MM-dd HH:mm:ss.fff");
cmd.Parameters["@ToDate"].Value = Calendar2.SelectedDate.ToString("yyyy-MM-dd HH:mm:ss.fff");
using (SqlDataAdapter sda = new SqlDataAdapter())
{
cmd.Connection = con;
sda.SelectCommand = cmd;
using (DataTable dt = new DataTable())
{
sda.Fill(dt);
GridView1.DataSource = dt;
GridView1.DataBind();
}
}
}
}
}
} // [Edit: sic!]
}
Java脚本:
<div id="ZF_dialog" title="Zusatzfelder" style="display:none;" ><br><br>
<table id="table_zf" style="width:100%; border-style:ridge; border-radius:8px">
<thead>
<tr>
<th style= 'width:10%'>Name</th>
<th style= 'width:10%'>Typ </th>
<th style= 'width:10%'>Wert</th>
<th style= 'width:10%'>Optionen</th>
<th style= 'width:10%'>Pflicht</th>
</tr>
</thead>
</table>
</div>
<div style="clear: both;"></div>
答案 0 :(得分:0)
示例HTML标记:
<div id="dialog1" title="Basic dialog">
<table border="1">
<tr><td>S.no</td><td>Text</td></tr>
<tr><td>One</td><td>Text</td></tr>
</table>
</div>
jQuery对话框代码:
$(function() {
$( "#dialog1" ).dialog();
});
我的代码使用cdn path for plugin
运行使用错过图片ui-icons_777777_256x240.png或路径不正确。