Posts

ASP.net - Delete Image Photo From GridView

GridDemo.aspx <script type="text/javascript">     function deleteConfirm(pubid) {         var result = confirm('Do You Really Want to Delete Record : ' + pubid + ' ?');         if (result) {             return true;         }         else {             return false;         }     } </script> --------------------- <asp:GridView ID="gridView" DataKeyNames="GalleryId" runat="server"         AutoGenerateColumns="False" ShowFooter="True" HeaderStyle-Font-Bold="true"         onrowdeleting="gridView_RowDeleting"         OnRowDataBound="gridView_RowDataBound" BackColor="White" BorderColor="#3366CC"          BorderStyle="None" BorderWidth="1px" CellPadding="4"              onselectedind...

ASP.net - Gridview - Add, Edit and delete

Gridview - Add, Edit and delete In this article we create a Gridview from database and add some additional operations such a add, edit and delete data in the GridView control. In the previous article , we learned how to create a simple GridView at runtime . GridView at Runtime Database In this article I have used Microsoft's Pubs database for sample data. You can download it free from the following link. Download Here we connect the Stores table of Pubs database for these operations. You can see the structure of the table here. After setting the database, create a new Asp.Net project and open the design view and write the following code in the aspx file. Default.aspx <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server">     <title>Gridview Add, Edit and Delete</ti...

ASP.net - Datalist component Populate

DataList.aspx <%------DATALIST---START----%> <div> <asp:DataList ID="FamilyDataList1" runat="server" RepeatColumns="1" onitemcommand="DataList1_ItemCommand"> <ItemTemplate><asp:Panel ID="Panel1" runat="server" BorderColor="#FF9933" BorderWidth="1px" Height="200px" Width="400px"> <table height="150" > <%--<tr > <td width="75%" style="color: #FF0000; font-weight: bold" align="center"> <asp:ImageButton ID="Image1" runat="server" CssClass="img-circle" ImageUrl='<%# Eval("CONTACT_PHOTO") %>' CommandName="ViewDetails" CommandArgument='<%# Eval("CONTACT_ID") %>'> </asp:ImageButton> </td> </tr>--%> <tr > <td width="75%" style="color: #0000FF; font-weight: bold">...

Social Engineering :: Fraud Techniques Awareness

Social Engineering? Social engineering is a technique perpetrators of fraud use in order to lure people into a conduct based on typically human traits such as confidence, curiosity, naivety, fear, greed, etc. Perpetrators will pretend to be someone else so as to get hold of information and/or to make their victim carry out payments which, otherwise, would be impossible to obtain or would need a much bigger effort or cost much more money. There are various kinds of social engineering and they all affect our daily life in many ways. You may be a victim of this kind of deception when you are busy internet banking or carrying out an online payment. What will perpetrators do in order to deceive you? People who want to deceive you, often will use one of the following techniques: Phishing Sending a false e-mail on behalf of the CEO Below are some other examples: You are entitled to carry out (major) payments within your company and you receive a false e-mail on behalf of the CEO (or an other ...

Skimming & Card Trapping :: Fraud Techniques Awareness

What is skimming? Fraudsters use skimming to copy the data stored on the magnetic stripe of your bank card  (at the back of the card) when you put your card in a cash dispenser.  They use an almost invisible device installed right in front of the card slot on the cash dispenser in order to copy the data without the customer being aware of this.  At the same time, they try to see your secret code, for instance by making use of a minicamera or via  shoulder surfing .  The data that have been stolen, will be used for making a false card. What is card trapping?  Card trapping is a form of skimming.  Fraudsters don't use card trapping to copy the card data, but to make sure your card is trapped in the cash dispenser.  They will seize the opportunity of you leaving and looking for help to get hold of your card.  Also in this case, they will try to see your secret code.