checkboxes2

ASP.NET – Create GridView with Checkbox

Gridview checkbox in Asp.net c# Its pretty simple to put checkboxes in gridview control in asp.net. DESIGN OF THE PAGE : Open your .aspx page and add a gridview control like below and its good design 🙂 : <asp:GridView runat=”server” ID=”datagridview” CssClass=”mydatagrid” AllowPaging=”True” CellPadding=”4″ ForeColor=”#333333″ GridLines=”None” BorderColor=”#003300″ BorderStyle=”Solid” BorderWidth=”1px” Font-Size=”11pt” Font-Names=”Century” OnPageIndexChanging=”datagridview_PageIndexChanging”> <RowStyle BackColor=”#EFF3FB” BorderColor=”Black” […]

Read More

Image

GridView with Buttons ASP.NET C#

GridView with Buttons ASP.NET C# First make a gridview in your .aspx page (Design page) Here’s my code : <asp:GridView runat=”server” ID=”datagridview” CssClass=”mydatagrid” AllowPaging=”True” CellPadding=”4″ ForeColor=”#333333″ GridLines=”None” BorderColor=”#003300″ BorderStyle=”Solid” BorderWidth=”1px” Font-Size=”11pt” Font-Names=”Century” OnPageIndexChanging=”datagridview_PageIndexChanging” OnRowCommand=”datagridview_RowCommand”> <RowStyle BackColor=”#EFF3FB” BorderColor=”Black” BorderWidth=”1px” /> <FooterStyle BackColor=”#507CD1″ Font-Bold=”True” ForeColor=”White” /> <PagerStyle BackColor=”#2461BF” ForeColor=”White” HorizontalAlign=”Center” /> <SelectedRowStyle BackColor=”#D1DDF1″ Font-Bold=”True” ForeColor=”#333333″ /> <HeaderStyle […]

Read More

C# Image to byte array and byte array to image

C# Image to byte array and byte array to image Here’s a simple example about how image can be converted to byte array and stored into MS Sql Database and retrieved back as image. Table: CREATE TABLE [dbo].[ProductTable]( [ID] [int] IDENTITY(1,1) NOT NULL, [ProductName] [nvarchar](50) NOT NULL, [ProductDesc] [nvarchar](max) NULL, [ProductImage] [image] NULL ) Declaring […]

Read More

image

ASP.NET – Import CSV file to MS SQL Database

Import csv file to ms sql server using ASP.NET C# Today I will be showing you how you can import CSV file data into ms sql databases using ASP.NET C# First of all, define your connectionstring in web.config file In Web.config file define your connectionstring : <connectionStrings> <add name=”myconnectionString” connectionString=”Data Source=HITESH\SQLEXPRESS;Initial Catalog=MyDatabase;User ID=hitesh;Password=789″/> </connectionStrings> Open […]

Read More

image

Android Swipe Views with Tabs

Android Swipe Views with Tabs (Custom Designs and Color) Android Navigation tabs with swipe wipe and design This post is about making Android Navigation tabs with dynamic colors. First create a new application in android studio with name AndroidTabActivity Make a new layout file in res > layout > folder with name tabparent.xml and edit […]

Read More