Saturday, September 11, 2010

onchange event in DropDownList through Jquery


$(document).ready(function() {
$('#<%=DropDownList1.ClientID %>').change(function() {
if (($("#<%=DropDownList1.ClientID %> option:selected").val() == "0"))
{
... // do your stuff
}
else
{
// do your stuff
}

});});

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
}
AJAX, asp, Asp.net, asp.net and sql server security, Asp.net IntemIndex, C#, Css, DataBinder.Eval, DataKeyNames, Datalist, Datapager, DataSet, DataTable, DropDownList, FindControl, gridview, JavaScript, jquery, Listview, Paging, Regex, RegularExpression, Repeater, Server side validation, Sql Server, timer, timercallback, Validation, XML, xmlnode, XPath