var index = students.FindIndex(st => st.ID == student.ID);
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Thursday, April 30, 2015
How to use IndexOf() method of List <object> asp net c#
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.
Getting relative virtual path from physical path asp net c#
var relativePath = "/" + physicalPath.Replace(HttpContext.Current.Request.PhysicalApplicationPath, String.Empty).Replace("\\", "/");Or use the extension method
/// <summary> /// Get relative path from physical path /// </summary> /// <param name="di">DirectoryInfo</param> /// <returns></returns> public static string GetRelativePath(this DirectoryInfo di) { return "/" + di.FullName.Replace(HttpContext.Current.Request.PhysicalApplicationPath, String.Empty).Replace("\\", "/"); }
Saturday, April 18, 2015
O/R Designer validation failed for file: .dbml
devenv.exe /ResetSkipPkgs
Wednesday, April 15, 2015
How to add serial no in crystal report cross tab
No option in crystal report instead use sql server's DENSE RANK FUNCTION
e.g.
e.g.
SELECT DENSE_RANK() OVER(ORDER BY g.[FirstColumnInCrossTab]) SrNo, * FROM
Monday, April 13, 2015
How do I convert an enum to a list in asp net C#
Enum.GetValues(typeof(SomeEnum)).Cast<SomeEnum>().Select(v => v.ToString()).ToList();
Friday, April 10, 2015
Sunday, April 5, 2015
Generating the SQL equivalent of Guid.Empty
SELECT CAST(0x0 AS UNIQUEIDENTIFIER)
Subscribe to:
Comments (Atom)