English 中文(简体)
ASP. 净额 - 概览
原标题:ASP.Net - Gridview row selection and effects

I m使用以下代码,试图让用户选择一个电网格浏览器,在电网效应中点击任何地方(加湿和外出)。 这部法典似乎在输入数据上适用,我可以打破这一局面。 (有线)。

这一控制是在用户控制下进行的,该控制在内容页上,有主页。


    protected void gvOrderTypes_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        GridView gvOrdTypes = (GridView)sender;

        //check the item being bound is actually a DataRow, if it is,   
        //wire up the required html events and attach the relevant JavaScripts
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes["onmouseover"] = "javascript:setMouseOverColor(this);";
            e.Row.Attributes["onmouseout"] =  "javascript:setMouseOutColor(this);";
            e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(gvOrdTypes, "Select$" + e.Row.RowIndex);
        }
    }

问题回答

预想 手提器与有数据记录的活动相联,而不是输入数据。 每个人。 作为附带说明,代码工程





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签