How to hide generated javascript file in visual studio code

In this post I am going to show you a cool trick in visual studio code. Let's suppose you are writing typescript code in visual studio code and you want to hide generated javascript code.

Create .vscode folder in your folder and then create settings.json file and paste following code

{ "files.exclude": { "node_modules":true, "**/.git": true, "**/.DS_Store": true, "**/*": true, "**/*.js": {"when": "$(basename).ts"}     } }

ASP.NET Gridview and Conditioanl Image

Depending upon a value in the data source, we can conditionally display images in GridView columns. For example, the following TemplateField declaration conditionally displays approved.gif or unapproved.gif based on IsApproved flag in the DataSet that the GridView is bound to:
<asp:TemplateField HeaderText="Yes">
                         <asp:Image ID="ApprovalImage" Height="20px" Width="20px" runat="server" ImageUrl='<%# "~/Images/" + ((Eval("U_Yeah").ToString()== "Y") ? "apply.png" : "del.jpg") %>' />


Popular posts from this blog

How to get cell value of gridview using JQUERY

how to convert web page to pdf

Export Html to Pdf using iTextSharp(GridView)