23 October 2019

Angular Commands – CLI

Some Angular CLI command’s, which help you while developing an Angular Application.
1) To install Angular CLI
npm install -g @angular/cli
2) To get online help
ng help
3) To get detailed help of a command
ng [command name] --help
4) To get Angular version details
ng version
Or
ng --version
5) To create new Angular Project
ng new <ProjectName>
6) To Build Angular Application
ng build
7) To build Angular Project and starts a web server
ng serve
8) To build and open Angular application in browser
ng serve --open
Or
ng serve --o
9) To run an Angular App on a new port
ng serve --o --port <PortNumber>
10) To generate a new component
ng generate component <ComponentName>
Or
ng g c <ComponentName>
11) To create a service
ng generate service <ServiceName> 
Or
ng g s <ServiceName>

31 July 2013

IIS 7.0 Report viewer Setting

1) Click on MIME Types :- 
       
         Action Pen               :-  Add
         FileName Extension  :- .axd
         MIME Type               :- application/octet-stream

2) Click on Handler Mapping :-

        Action pan Click Add Manage Handler
        Then Enter
             Request path :- Reserved.ReportViewerWebControl.axd
             Type              :- Microsoft.Reporting.WebForms.HttpHandler
             Name            :- Reserved-ReportViewerWebControl-axd  

Now Restart The IIS MUST

       


19 July 2013

Disable button after first click and display confirmation box

Simple Code :- 

<asp:Button ID="btn" runat="server" Text="Start"
   UseSubmitBehavior="false"  
    OnClientClick="this.disabled=true;
      this.value = 'Please wait ...';"  onclick="btn_Click" />


With Confirm Message :

<asp:Button ID="btn" runat="server" Text="Start" 
   UseSubmitBehavior="false" 
      OnClientClick="if (!confirm('Certain??')) return; 
        this.disabled=true;this.value = 'Please wait ...';"      
 onclick="btn_Click" />