Quantcast
Channel: Monir's Blog
Browsing index pages (54 articles)
↧

Image may be NSFW.
Clik here to view.

C# winform check every 30 mins for log in session

In the Solution Explorer right-click the project and select Properties. Go to the “Settings” tab and create a “SettingInterval”. Make the type “int” for the SettingInterval. public...

View Article


Image may be NSFW.
Clik here to view.

TD Ameritrade API Access – 2019 Guide

Reference: https://www.reddit.com/r/algotrading/comments/c81vzq/td_ameritrade_api_access_2019_guide/ I’ve noticed many MANY people banging their heads against the wall trying to access the TD...

View Article


Check SQL Lock

SELECT s.session_id AS 'SessionId', s.login_name AS 'Login', COALESCE(s.host_name, c.client_net_address) AS 'Host', s.program_name AS 'Application', t.task_state AS 'TaskState', r.start_time AS...

View Article

DELETE TEMP TABLE

IF OBJECT_ID(‘tempdb..#TEMP_AP_INVOICE’) IS NOT NULL DROP TABLE #TEMP_AP_INVOICE Advertisements

View Article

Cannot resolve the collation conflict between “Latin1_General_CS_AS” and...

If this error happens in join, use this solution:   SELECT * FROM Table1 LEFT OUTER JOIN Table2 ON Table2.ID = Table1.ID collate SQL_Latin1_General_CP1_CI_AS

View Article


How to skip one item in a loop then take the rest of a sequence

foreach (var item in list.Skip(1))

View Article

Image may be NSFW.
Clik here to view.

Angular CLI New Project and Component

Creating New Project Options: Details Here 2. If you see the project did not created the templete as seperate html file, open angular.json file and setup these 2 line to false like this: “schematics”:...

View Article

The type ‘System.Data.Entity.DbContext’ is defined in an assembly that is not...

Go to Tools » NuGet Package Manager » Manage NuGet Packages For Solution. Ensure that Browse is selected and type “entityframework” into the search box. and install the entity framework Check if its...

View Article


Image may be NSFW.
Clik here to view.

Data Access Layer

1. 2. Delete Class.cs 3. 4. 5. select DB, table and views you want to add. 6. Add reference to this project from WEB API Service project 7. Add a Web API 2 Controller – Empty 8. Add DataAccess...

View Article


3 layer architecture of Angular Project

Layer 1: WebUI (Angular) https://monirblog.wordpress.com/2018/08/29/setup-angular-2-environment-in-a-new-computer/  Layer 2: ASP.NET Web API Service...

View Article

ADD TFS in VS Code

View Article

Image may be NSFW.
Clik here to view.

Setup Angular 2 Environment in a NEW Computer

Video tutorial: https://www.youtube.com/watch?v=H9iK2Eib85E Check which version of OS you have by start–>run–>msinfo32 Download & install 64 bit Node from https://nodejs.org/en/download/...

View Article

Image may be NSFW.
Clik here to view.

Winform – Override textbox to show sample text and clear on click

Winform watermark text on textbox:   public string initTextClient = “Client”; public bool editedClient; public SelectMatterClient() { InitializeComponent(); txtClient.Text = initTextClient;...

View Article


VS 2017 add setup project type

Install this file as administrator and you will see the setup project type.

View Article

Delete duplicate records in SQL Server?

Use this script at you own risk. I am not responsible for any accidental mass amount of your data get deleted. Always use begin tran and rollback tran to make sure you know what are you deleting....

View Article


Angular CLI create new component command

ng g c employees/listEmployees –spec false –flat true   this will create all required component inside the employees folder.

View Article

Image may be NSFW.
Clik here to view.

deploy web service to IIS

Build your VS solution and copy the published files to a specific folder. and add a new website in IIS and set the destination to that folder Change connect as your authentication details to that...

View Article


Image may be NSFW.
Clik here to view.

Deploy angular Cli app to IIS

If not installed, install urlrewrite for IIS from here: https://www.iis.net/downloads/microsoft/url-rewrite You may need to reboot your computer. step 1: Build angular application Option 1: If you want...

View Article

Angular Cli base href

To change base href from root folder to a subfolder:   In root level index.html change <base href=”/MFGlist/”> Run the project using this command: ng serve -o –base-href /MFGlist/

View Article

Get the column value of the selected row in wpf listview

<TabItem x:Name="HistoryTab" Header="History" Style="{StaticResource TabStyle}"> <Grid> <ListView x:Name="HistoryTabLv" HorizontalAlignment="Left" Height="164" Width="275"...

View Article
Browsing index pages (54 articles)


Latest Images