Thursday, September 17, 2020

How to change port for a asp.net web site project?

 1. Go to web site property page,

2. Now Click on Start Options.

3. Now look at server block , and select option Use custom server

And Give an local host url in base url field.

For Ex: http://localhost:2859/WebSite1/

Friday, December 6, 2019

crystal report now showing correct or pure white image

If you want images in your report to keep their original color depth when they are encapsulated, select this option. Otherwise, all images are converted to 8 bits per pixel before being encapsulated.


To check this option go to:
File -> Report Options -> Retain Original Image Color Depth



Friday, April 17, 2015

Linq Convert DateTime? to DateTime in ("dd/MM/yyyy")

Sql Query:
SELECT convert(varchar,[addedat],103) as addedat FROM tblTable


Linq Query:

 var query = from q in entity.tblTable
                    select new
                    {
                     
                        date = SqlFunctions.DateName("day", q.addedat).Trim() + "/" +
                            SqlFunctions.StringConvert((double)q.addedat.Value.Month).TrimStart() + "/" +
                            SqlFunctions.DateName("year", q.addedat),
                    };

Tuesday, November 11, 2014

Install-Package : The current environment doesn't have a solution open.

This error occur , if you not save your solution .sln file. use file-?>saveall.