Skip to main content

Could not load assemby CrystalDecisions.Windows.Forms

Could not load assemby CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304 or one of its dependencies. The system cannot find the file specified. This particular error hunted me for several days. One of our company’s client got this error in software system which we deployed on his newly configured windows system. Everything was working fine previously though.After googling […]

Read More

.NET Show Javascript alert programmatically

.NET Show Javascript alert programmatically 02

.NET Show Javascript alert programmatically or code behind. At times, we require to display a error message or Information message to the users at run time in a alert message. To display Javascript alert message in .net from code behind use the following code : ClientScript.RegisterClientScriptBlock(this.GetType(), “alert”, “<script>alert(‘Your message to display.’);</script>”); in your respective method. […]

Read More

C# Filter DataTable by Date

C# Filter DataSet by Date 01

C# Filter DataTable by Date Several times, situation appears wherein we have already fetched data from database but we need it to filter by date. This post explains how we can filter C# datatable using date. Syntax : DataTable dt = datatableId.Select().Where(p => (Convert.ToDateTime(p[“YourDateColumnName”]) >= Convert.ToDateTime(FilterFromDate)) && (Convert.ToDateTime(p[“YourDateColumnName”]) <= Convert.ToDateTime(FilterToDate))).CopyToDataTable(); So, let’s try it on actual scenario. […]

Read More

C# Filter DataSet by Date

C# Filter DataSet by Date 02

C# Filter DataSet by Date Several times, situation appears wherein we have already fetched data from database but we need it to filter by date. This post explains how we can filter C# dataset using date. Syntax : DataTable dt = datasetId.Tables[0].Select().Where(p => (Convert.ToDateTime(p[“YourDateColumnName”]) >= Convert.ToDateTime(FilterFromDate)) && (Convert.ToDateTime(p[“YourDateColumnName”]) <= Convert.ToDateTime(FilterToDate))).CopyToDataTable(); So, let’s try it on actual […]

Read More

ASP.NET MVC Actions Example

ASP.NET MVC Actions - Example 2

ASP.NET MVC Actions ASP.NET MVC Actions executes requests received at Controllers and generates corresponding responses and results for the requests. Default response of Actions are ActionResult. Example of ASP.NET MVC Actions : We created a Controller named HomeController in our previous tutorial, continuing on that let’s try to understand the ASP.NET MVC Actions. Our HomeController : […]

Read More