var row = ((Control)e.CommandSource).NamingContainer as GridViewRow;
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Monday, May 4, 2015
How to get the row in GridView RowCommand Event
C#
Friday, May 1, 2015
How to disable/enable buttons and links (jQuery + Bootstrap)
jQuery.fn.extend({
disable: function (state) {
return this.each(function () {
var $this = jQuery(this);
if ($this.is('input, button'))
this.disabled = state;
else if($this.is('a'))
$this.toggleClass('disabled', state);
});
}
});
Thursday, April 30, 2015
How to use IndexOf() method of List <object> asp net c#
var index = students.FindIndex(st => st.ID == student.ID);
Monday, April 20, 2015
Using DataBinder.Eval in the RowDataBound Event asp net gridview
decimal totalAmount = 0; protected void gv_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { totalAmount += Decimal.Parse(DataBinder.Eval(e.Row.DataItem, "Amount").ToString()); } }
Sunday, April 19, 2015
Cannot generate deployment plan SSDT
Delete the .dbmdl file in your database project.
Subscribe to:
Comments (Atom)