我如何调用事件dropdownlist.selectedindex.changed上的客户端?如果DropDownList的选定索引改变,隐藏的GridView行
可以这样用JavaScript/jQuery的呢?
我应该包括在标记启用JavaScript的?
<%@ Page Title="Report" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report" %>
<%@ PreviousPageType VirtualPath="~/Top.aspx" %>
我希望做这样的
IF SelectedValue = 2, Hide Row 1,2,3, and 4
IF SelectedValue = 3, Hide Row 11,21,31, and 41
什么是你的问题? – jams 2011-05-20 05:13:29
你必须提供更多的信息,是的,它可以完成,但你想隐藏什么?某些行,整个网格? – 2011-05-20 05:14:23
如果dropdownlist被更改,然后隐藏gridview行。我想在客户端做到这一点,JavaScript应该怎么样? – 2011-05-20 05:22:42