91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 14KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-29
  • 語言: C#
  • 標簽:

資源簡介

ASP.net GridView雙擊事件,彈出一個窗口顯示詳細信息,模式窗口顯示詳細信息。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.HtmlControls;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.xml.Linq;
using?System.Data.SqlClient;


namespace?WebApplication3
{
????public?partial?class?_Default?:?System.Web.UI.Page
????{
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????string?str?=?“Data?Source=.;Initial?Catalog=SSMS;Integrated?Security=True“;
????????????SqlConnection?sqlcon?=?new?SqlConnection(str);
????????????sqlcon.Open();
??????????///??SqlCommand?sqlmm?=?new?SqlCommand();
????????????SqlDataAdapter?sda?=?new?SqlDataAdapter(“select?stu_id?as?‘ID‘stu_name?as?‘姓名‘stu_sex?as?‘性別‘stu_age?as?‘年齡‘?from?student_tb“sqlcon);
????????????DataTable?dt?=?new?DataTable();
????????????sda.Fill(dt);
????????????GridView1.DataSource?=?dt;
????????????GridView1.DataBind();
????????????
????????}

???????
????????protected?void?GridView1_RowDataBound(object?sender?GridViewRowEventArgs?e)
????????{
????????????if?(e.Row.RowType?==?DataControlRowType.DataRow)
????????????{
????????????????//鼠標移動到每項時顏色交替效果
????????????????e.Row.Attributes.Add(“onmouseout“?“this.style.backgroundColor=‘White‘;this.style.color=‘#003399‘“);
????????????????e.Row.Attributes.Add(“onmouseover“?“this.style.backgroundColor=‘#6699FF‘;this.style.color=‘#8C4510‘“);

????????????????//單擊/雙擊?事件
????????????????e.Row.Attributes.Add(“ondblclick“?“DbClickEvent(‘“?+?e.Row.Cells[0].Text?+?“‘)“);
???????????????//???e.Row.Attributes.Add(“onclick“?“ClickEvent(‘“?+?e.Row.Cells[1].Text?+?“‘)“);
????????????????//stuID?=?e.Row.Cells[0].Text;
????????????????//?mmm(thise);
????????????????//??e.Row.Attributes.Add(“onkeydown“?“GridViewItemKeyDownEvent(‘“?+?e.Row.Cells[1].Text?+?“‘)“);
?
????????????????//設置懸浮鼠標指針形狀為“小手“
????????????????e.Row.Attributes[“style“]?=?“Cursor:hand“;

????????????}
????????}

????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-10-28?22:06??ASP.net?GridView?雙擊事件\
?????目錄???????????0??2011-10-28?22:06??ASP.net?GridView?雙擊事件\WebApplication3\
?????文件?????????935??2011-10-28?08:41??ASP.net?GridView?雙擊事件\WebApplication3.sln
?????文件???????25088??2011-10-28?10:59??ASP.net?GridView?雙擊事件\WebApplication3.suo
?????文件????????1427??2011-10-28?11:03??ASP.net?GridView?雙擊事件\WebApplication3\Default.aspx
?????文件????????2171??2011-10-28?11:02??ASP.net?GridView?雙擊事件\WebApplication3\Default.aspx.cs
?????文件????????1199??2011-10-28?11:03??ASP.net?GridView?雙擊事件\WebApplication3\Default.aspx.designer.cs
?????目錄???????????0??2011-10-28?22:06??ASP.net?GridView?雙擊事件\WebApplication3\Properties\
?????文件????????1320??2011-10-28?08:41??ASP.net?GridView?雙擊事件\WebApplication3\Properties\AssemblyInfo.cs
?????文件????????7302??2011-10-28?08:50??ASP.net?GridView?雙擊事件\WebApplication3\Web.config
?????文件????????4423??2011-10-28?09:29??ASP.net?GridView?雙擊事件\WebApplication3\WebApplication3.csproj
?????文件????????1225??2011-10-28?09:29??ASP.net?GridView?雙擊事件\WebApplication3\WebApplication3.csproj.user
?????文件?????????540??2011-10-28?10:55??ASP.net?GridView?雙擊事件\WebApplication3\WebForm1.aspx
?????文件????????1330??2011-10-28?11:00??ASP.net?GridView?雙擊事件\WebApplication3\WebForm1.aspx.cs
?????文件????????1199??2011-10-28?10:53??ASP.net?GridView?雙擊事件\WebApplication3\WebForm1.aspx.designer.cs

評論

共有 條評論

相關資源