USE [master] GO GRANT ALTER TRACE TO [LOGIN] GO
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Thursday, May 7, 2015
how to grant alter permission on SP_TRACE_CREATE
Monday, May 4, 2015
How to get the row in GridView RowCommand Event
C#
var row = ((Control)e.CommandSource).NamingContainer as GridViewRow;
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()); } }
Subscribe to:
Comments (Atom)