Posts

SQL SERVER - DATA TYPES

Numeric Data Types Data Type Description Length int Stores integer values ranging from -2,147,483,648 to 2,147,483,647 4 bytes tinyint Stores integer values ranging from 0 to 255 1 byte smallint Stores integer values ranging from -32,768 to 32,767 2 bytes bigint Stores integer values ranging from -2 53  to 2 53 -1 8 bytes money Stores monetary values ranging from -922,337,203,685,477.5808 to 922,337,203,685,477.5807 8 bytes smallmoney Stores monetary values ranging from -214,748.3648 to 214,748.3647 4 bytes decimal(p,s) Stores decimal values of precision  p  and scale  s . The maximum precision is 38 digits 5–17 bytes numeric(p,s) Functionally equivalent to decimal 5–17 bytes float(n) Stores floating point values with precision of 7 digits (when  n =24) or 15 digits (when  n =53) 4 bytes (when  n =24) or 8 bytes (when  n =53) real Functionally equivalent to float(24) 4 bytes Date and Time Data Types Data Type Description Length Example date Stores...

ASP.net - GRIDVIEW with Button & HyperLink

Image
<!--EVENT GRID VIEW [START]--> <asp:GridView ID="gridView" DataKeyNames="SUBJECT_NAME" runat="server" AutoGenerateColumns="False" HeaderStyle-Font-Bold="true" BackColor="White"  BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CellPadding="3"                                      onselectedindexchanged="gridView_SelectedIndexChanged"                                     CssClass="table table-hover table-bordered">                             <Columns>                                   <asp:BoundField DataField="SUBJECT_NAME"                          ...

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...