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 ArticleTD 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 ArticleCheck 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 ArticleDELETE TEMP TABLE
IF OBJECT_ID(‘tempdb..#TEMP_AP_INVOICE’) IS NOT NULL DROP TABLE #TEMP_AP_INVOICE Advertisements
View ArticleCannot 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 ArticleHow to skip one item in a loop then take the rest of a sequence
foreach (var item in list.Skip(1))
View ArticleAngular 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 ArticleThe 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 ArticleData 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 Article3 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 ArticleSetup 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 ArticleWinform – 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 ArticleVS 2017 add setup project type
Install this file as administrator and you will see the setup project type.
View ArticleDelete 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 ArticleAngular 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 Articledeploy 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 ArticleDeploy 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 ArticleAngular 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 ArticleGet 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