How do i call the event dropdownlist.selectedindex.changed on client-side?
Can this be done with javascript/jquery?
What should I include in the markup to enable javascripts?
<%@ Page Title="Report" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report" %>
<%@ PreviousPageType VirtualPath="~/Top.aspx" %>
I was looking to do something like this
IF SelectedValue = 2, Hide Row 1,2,3, and 4
IF SelectedValue = 3, Hide Row 11,21,31, and 41
You can attach the
onchangeevent to javascript on your dropdown. Then whenever yourselected Index changesit will fire and call the javascriptupdatemethod, in which you can hide that particular row.here is JavaScript code