$(document).ready(function() {
$('#<%=DropDownList1.ClientID %>').change(function() {
if (($("#<%=DropDownList1.ClientID %> option:selected").val() == "0"))
{
... // do your stuff
}
else
{
// do your stuff
}
});});
Saturday, September 11, 2010
onchange event in DropDownList through Jquery
Cross browser opecity in css
.opecity{
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=50);
-moz-opacity: 0.5;
-khtml-opacity: 0.5;
-webkit-opacity: 0.5;
opacity: 0.5;
}
Getting GridViewRow Value on Button Click Event
public void User_Click_detail(object sender, EventArgs e)
{
LinkButton LB = (LinkButton)sender;
GridViewRow Grid1 = (GridViewRow)LB.NamingContainer;
... int indexid = Convert.ToInt32((GridView1.DataKeys[Grid1.RowIndex].Values[0].ToString()));
//perform CRUD on based on indexid value
}
Tags
Asp.net
,
C#
,
DataKeyNames
,
FindControl
,
gridview
Subscribe to:
Posts
(
Atom
)